Commit 897f24c3 authored by echel0n's avatar echel0n

Fixed issue with logging exceptions, KeyError 'exc_info'

parent 3f15163f
......@@ -254,7 +254,8 @@ class Logger(logging.getLoggerClass()):
super(Logger, self).exception(msg, *args, **kwargs)
def error(self, msg, *args, **kwargs):
super(Logger, self).error(msg, exc_info=1, *args, **kwargs)
kwargs['exc_info'] = True
super(Logger, self).error(msg, *args, **kwargs)
def warning(self, msg, *args, **kwargs):
super(Logger, self).warning(msg, *args, **kwargs)
......
......@@ -75,9 +75,9 @@ class UPNPClient(object):
# https://tools.ietf.org/id/draft-ietf-pcp-upnp-igd-interworking-07.html#errors
sickrage.app.log.debug("UPnP port mapping already configured, not overriding it")
else:
sickrage.app.log.exception("Failed to add UPnP portmap")
sickrage.app.log.debug("Failed to add UPnP portmap")
except Exception:
sickrage.app.log.exception("Failed to add UPnP portmap")
sickrage.app.log.debug("Failed to add UPnP portmap")
def _add_nat_portmap(self, upnp_dev):
# internal_ip = self._find_internal_ip_on_device_network(upnp_dev)
......
......@@ -167,6 +167,6 @@ class SpeedCDProvider(TorrentProvider):
sickrage.app.log.debug("Found result: {}".format(title))
except (AttributeError, TypeError, KeyError, ValueError, IndexError):
sickrage.app.log.exception('Failed parsing provider.')
sickrage.app.log.error('Failed parsing provider.')
return results
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment