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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -293,9 +293,8 @@ class Request(Message):
) )
) )
except (AssertionError, TimeoutError) as e: except (AssertionError, TimeoutError) as e:
plugin.logger.exception(e)
logger.warning( 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)]) response = Response(output=None, errors=[str(e)])
except Exception as e: except Exception as e: