Better error reporting for log config

Fixes #174
This commit is contained in:
Peter Šurda 2016-02-13 22:16:44 +01:00
parent ab974abce0
commit 218bdf38e1
1 changed files with 3 additions and 1 deletions

View File

@ -37,8 +37,10 @@ def configureLogging():
try: try:
logging.config.fileConfig(os.path.join (shared.appdata, 'logging.dat')) logging.config.fileConfig(os.path.join (shared.appdata, 'logging.dat'))
have_logging = True have_logging = True
print "Loaded debug config from %s" % (os.path.join(shared.appdata, 'logging.dat'))
except: 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 sys.excepthook = log_uncaught_exceptions