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:
parent
3eb366ac05
commit
d1341bf777
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user