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

[tor-commits] [sbws/maint-1.1] minor: Change log warning to info or debug



commit 290030aedd6d6ade7e53c22dacab149e3e5b1b8f
Author: juga0 <juga@xxxxxxxxxx>
Date:   Tue Mar 2 17:33:12 2021 +0000

    minor: Change log warning to info or debug
    
    when it contains sensitive information.
---
 sbws/core/scanner.py |  2 +-
 sbws/util/stem.py    | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index c7dde75..e446391 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -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)
diff --git a/sbws/util/stem.py b/sbws/util/stem.py
index 9fea31f..38d0570 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -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



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