[tor-commits] [sbws/master] Warn when exception might be caused by no disk space

pastly at torproject.org pastly at torproject.org
Wed Sep 5 19:44:55 UTC 2018


commit 66189d6ffed40bac6b7e2e6d111ec68925d71af0
Author: juga0 <juga at riseup.net>
Date:   Thu Jul 12 21:32:32 2018 +0000

    Warn when exception might be caused by no disk space
---
 sbws/lib/circuitbuilder.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sbws/lib/circuitbuilder.py b/sbws/lib/circuitbuilder.py
index e3b3950..66687b0 100644
--- a/sbws/lib/circuitbuilder.py
+++ b/sbws/lib/circuitbuilder.py
@@ -65,7 +65,9 @@ class CircuitBuilder:
                 pass
             self.built_circuits.discard(circ_id)
         except (ControllerError, ValueError) as e:
-            log.exception("Error trying to get circuit to close it: %s.", e)
+            log.warning("Error trying to get circuit to close it: %s.", e,
+                        "If sbws didn't receive SIGHUP, "
+                        "maybe this system run out of disk space.")
 
     def _build_circuit_impl(self, path):
         if not valid_circuit_length(path):





More information about the tor-commits mailing list