Better error reporting for log config

Fixes #174
This commit is contained in:
Peter Šurda 2016-02-13 22:16:44 +01:00
parent cd20ac985a
commit 9fc8a1106d
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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