Commit beaf6de8 authored by juga's avatar juga
Browse files

fix: resultdump: Log if relay was measured as exit

or entry.

Closes #40048
parent 7430b4ef
Pipeline #2472 passed with stage
in 22 minutes and 3 seconds
......@@ -792,6 +792,10 @@ class ResultDump:
"destination {}: {}".format(
result.fingerprint, result.nickname, result.circ,
result.dest_url, result.msg)
# The result doesn't store the exit policies, so it can't be logged
# whether it was an exit.
as_exit = result.circ[1] == result.fingerprint
msg += ". As exit." if as_exit else ". As entry."
# When the error is that there are not more functional destinations.
if result.type == "error-destination":
log.info("Shutting down because there are not functional "
......
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