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:
log.warning(
log.info(
"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))
try:
controller.attach_stream(st.id, 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",
st.id, 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',
st.id, circ_id, e)
else:
pass
return closure_stream_event_listener
......
Markdown is supported
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