forked from platypush/platypush
Cleaner logging for assertion errors in plugin actions
This commit is contained in:
parent
c89c712928
commit
550f026e13
1 changed files with 1 additions and 2 deletions
|
@ -293,9 +293,8 @@ class Request(Message):
|
|||
)
|
||||
)
|
||||
except (AssertionError, TimeoutError) as e:
|
||||
plugin.logger.exception(e)
|
||||
logger.warning(
|
||||
'{} from action [{}]: {}'.format(type(e), action, str(e))
|
||||
'%s from action [%s]: %s', e.__class__.__name__, action, str(e)
|
||||
)
|
||||
response = Response(output=None, errors=[str(e)])
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue