From 9fc8a1106dc4e767f5f15f06d16f6e997181b2de Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 13 Feb 2016 22:16:44 +0100 Subject: [PATCH] Better error reporting for log config Fixes #174 --- src/debug.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debug.py b/src/debug.py index d430e5e3..8328e3ed 100644 --- a/src/debug.py +++ b/src/debug.py @@ -37,8 +37,10 @@ def configureLogging(): try: logging.config.fileConfig(os.path.join (shared.appdata, 'logging.dat')) have_logging = True + print "Loaded debug config from %s" % (os.path.join(shared.appdata, 'logging.dat')) except: - pass + print "Failed to load debug config from %s, using default logging config" % (os.path.join(shared.appdata, 'logging.dat')) + print sys.exc_info() sys.excepthook = log_uncaught_exceptions