From 3f1f3e9b3befa3396e9cdba6dff1b5cf68bf64e0 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sat, 30 Apr 2016 12:45:01 +0200 Subject: [PATCH] Remove default debugging Only log errors. Can be overriden by a config file. --- src/debug.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debug.py b/src/debug.py index 8328e3ed..707d7062 100644 --- a/src/debug.py +++ b/src/debug.py @@ -25,8 +25,9 @@ import traceback import helper_startup helper_startup.loadConfig() -# TODO(xj9): Get from a config file. -log_level = 'DEBUG' +# Now can be overriden from a config file, which uses standard python logging.config.fileConfig interface +# examples are here: https://bitmessage.org/forum/index.php/topic,4820.msg11163.html#msg11163 +log_level = 'WARNING' def log_uncaught_exceptions(ex_cls, ex, tb): logging.critical(''.join(traceback.format_tb(tb)))