removed traceback from log message

This commit is contained in:
vicky 2022-05-29 19:01:50 +02:00
parent 247d8f088e
commit ca4ba47fa0
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ def log_message(message, level="ERROR"):
"""
level = level.lower()
logging.__getattribute__(level)(' ' + message) # TODO: Error handling on type error
logging.__getattribute__(level)(traceback.format_exc())
logging.__getattribute__(level)(__GLk())
if level in ["critical"]:
# logging.__getattribute__(level)(traceback.format_exc())
# logging.__getattribute__(level)(__GLk())
print("An unrecoverable error occurred, please check the log file for more information.")