From 550f026e13bf363844981aad5d45a7e42c21b2da Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 25 Aug 2022 00:30:53 +0200 Subject: [PATCH] Cleaner logging for assertion errors in plugin actions --- platypush/message/request/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/message/request/__init__.py b/platypush/message/request/__init__.py index 46f52452b..7b895fdf3 100644 --- a/platypush/message/request/__init__.py +++ b/platypush/message/request/__init__.py @@ -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: