From ee6e441628db141e9c1cba7d71554411d4cec830 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 4 Sep 2016 17:14:52 +0200 Subject: [PATCH] Fix log error --- resources/lib/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index a300b1af..0a28abb7 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -788,11 +788,9 @@ def CatchExceptions(warnuser=False): try: return func(*args, **kwargs) except Exception as e: - log.error('%s has crashed' % func.__name__) - log.error(addonName, e) + log.error('%s has crashed. Error: %s' % (func.__name__, e)) import traceback - log.error(addonName, "Traceback:\n%s" - % traceback.format_exc()) + log.error("Traceback:\n%s" % traceback.format_exc()) if warnuser: window('plex_scancrashed', value='true') return