forked from platypush/platypush
Better way to log the impacted plugin and action in case of uncaught exceptions in requests
This commit is contained in:
parent
947fc8f583
commit
339d1eb132
1 changed files with 3 additions and 2 deletions
|
@ -217,8 +217,9 @@ class Request(Message):
|
||||||
# Retry mechanism
|
# Retry mechanism
|
||||||
plugin.logger.exception(e)
|
plugin.logger.exception(e)
|
||||||
logger.warning(('Uncaught exception while processing response ' +
|
logger.warning(('Uncaught exception while processing response ' +
|
||||||
'from action {}.{}: {}').format(
|
'from action [{}] from plugin {}: {}').format(
|
||||||
plugin, self.action, str(e)))
|
self.action, plugin.__class__.__name__,
|
||||||
|
str(e)))
|
||||||
|
|
||||||
errors = errors or []
|
errors = errors or []
|
||||||
if str(e) not in errors:
|
if str(e) not in errors:
|
||||||
|
|
Loading…
Reference in a new issue