Commit 290030ae authored by juga's avatar juga
Browse files

minor: Change log warning to info or debug

when it contains sensitive information.
parent 3b1f7b79
......@@ -388,7 +388,7 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
circ_fps, nicknames, exit_policy = r
circ_id, reason = cb.build_circuit(circ_fps)
if not circ_id:
"Exit %s (%s) that can't exit all ips, failed to create "
" circuit as entry: %s (%s).", relay.fingerprint,
relay.nickname, circ_fps, nicknames)
......@@ -29,12 +29,12 @@ def attach_stream_to_circuit_listener(controller, circ_id):
circuit_str(controller, circ_id))
controller.attach_stream(, circ_id)
except (UnsatisfiableRequest, InvalidRequest) as e:
log.warning('Couldn\'t attach stream to circ %s: %s',
circ_id, e)
except OperationFailed as e:
log.exception("Error attaching stream %s to circ %s: %s",, circ_id, e)
# So far we never saw this error.
except (
UnsatisfiableRequest, InvalidRequest, OperationFailed
) as e:
log.debug('Error attaching stream %s to circ %s: %s',, circ_id, e)
return closure_stream_event_listener
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment