[tor-commits] [sbws/master] With --log-level, override the right thing

pastly at torproject.org pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018


commit f52bc5b0ac6e5c5e529ed8655038be4a5dc27f97
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Wed Jul 4 11:32:50 2018 -0400

    With --log-level, override the right thing
---
 sbws/util/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/util/config.py b/sbws/util/config.py
index 8953d92..274e87b 100644
--- a/sbws/util/config.py
+++ b/sbws/util/config.py
@@ -100,7 +100,7 @@ def configure_logging(args, conf):
     assert isinstance(conf, ConfigParser)
     logger = 'logger_sbws'
     if args.log_level:
-        conf[logger]['level'] = args.log_level.upper()
+        conf['logging']['level'] = args.log_level.upper()
     # Set the correct handler(s) based on [logging] options
     handlers = set()
     can_log_to_file, reason = _can_log_to_file(conf)





More information about the tor-commits mailing list