[tor-commits] [sbws/master] scanner: lower logging level on uncatch exceptions
juga at torproject.org
juga at torproject.org
Mon Feb 4 14:57:14 UTC 2019
commit 0331ea584e2b630567c15f178bad739d925da933
Author: juga0 <juga at riseup.net>
Date: Tue Jan 8 15:46:10 2019 +0000
scanner: lower logging level on uncatch exceptions
when worker thread finish.
---
sbws/core/scanner.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index 34bfc5a..ed58fe7 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -322,9 +322,10 @@ def result_putter_error(target):
''' Create a function that takes a single argument -- an error from a
measurement -- and return that function so it can be used by someone else
'''
- def closure(err):
- log.error('Unhandled exception caught while measuring %s: %s %s',
- target.nickname, type(err), err)
+ def closure(object):
+ # The only object that can be here if there is not any uncatched
+ # exception is stem.SocketClosed when stopping sbws
+ log.debug(type(object))
return closure
More information about the tor-commits
mailing list