[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] scanner: lower logging level on uncatch exceptions



commit 0331ea584e2b630567c15f178bad739d925da933
Author: juga0 <juga@xxxxxxxxxx>
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
 
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits