Refactored exception logging

This commit is contained in:
Ozzieisaacs
2020-12-12 08:11:00 +01:00
parent 1ae778d81e
commit b637a63e71
10 changed files with 27 additions and 51 deletions

View File

@@ -156,8 +156,5 @@ def on_received_watch_confirmation():
move(os.path.join(tmp_dir, "tmp_metadata.db"), dbpath)
calibre_db.reconnect_db(config, ub.app_DB_path)
except Exception as e:
if config.config_log_level == logger.logging.DEBUG:
log.exception(e)
else:
log.error(e)
log.debug_or_exception(e)
return ''