Cleaner logging for assertion errors in plugin actions

This commit is contained in:
Fabio Manganiello 2022-08-25 00:30:53 +02:00
parent c89c712928
commit 550f026e13
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 2 deletions

View File

@ -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: