[tor-commits] [sbws/master] Use syslog level

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


commit 0306526e2a83968d3383bf8df5c06b41c0ee71ab
Author: juga0 <juga at riseup.net>
Date:   Tue Jul 10 08:03:38 2018 +0000

    Use syslog level
---
 sbws/util/config.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbws/util/config.py b/sbws/util/config.py
index c75eef3..bfd828c 100644
--- a/sbws/util/config.py
+++ b/sbws/util/config.py
@@ -139,6 +139,8 @@ def configure_logging(args, conf):
     conf['handler_to_file']['level'] = conf['logging']['to_file_level'].upper()
     conf['handler_to_stdout']['level'] = \
         conf['logging']['to_stdout_level'].upper()
+    conf['handler_to_syslog']['level'] = \
+        conf['logging']['to_syslog_level'].upper()
     # Now we configure the standard python logging system
     with NamedTemporaryFile('w+t') as fd:
         conf.write(fd)





More information about the tor-commits mailing list