commit beaf6de889bc75d53a6b0b90d12ab85aa0db56a0 Author: juga0 juga@riseup.net Date: Wed Feb 3 13:15:45 2021 +0000
fix: resultdump: Log if relay was measured as exit
or entry.
Closes #40048 --- sbws/lib/resultdump.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sbws/lib/resultdump.py b/sbws/lib/resultdump.py index 542837e..6673e9a 100644 --- a/sbws/lib/resultdump.py +++ b/sbws/lib/resultdump.py @@ -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 "