1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for logs being sent to error log viewer when not errors.

This commit is contained in:
echel0n 2014-12-16 02:28:20 -08:00
parent 3eb366ac05
commit d1341bf777

View File

@ -83,7 +83,8 @@ def log(msg, level=INFO, *args, **kwargs):
message = meThread + u" :: " + msg
logging.log(level, message, *args, **kwargs)
classes.ErrorViewer.add(classes.UIError(message)) and level == ERROR
if level == ERROR:
classes.ErrorViewer.add(classes.UIError(message))
def log_error_and_exit(self, error_msg, *args, **kwargs):
log(error_msg, ERROR, *args, **kwargs)