From 486801653a1dc0ba64316031b837d822305a65cc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 3 Apr 2022 00:26:39 +0200 Subject: [PATCH] Added `.exception` action to logger plugin --- platypush/plugins/logger/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platypush/plugins/logger/__init__.py b/platypush/plugins/logger/__init__.py index efac544d6..73de5fb73 100644 --- a/platypush/plugins/logger/__init__.py +++ b/platypush/plugins/logger/__init__.py @@ -41,6 +41,13 @@ class LoggerPlugin(Plugin): """ self.logger.error(msg, *args, **kwargs) + @action + def exception(self, exception, *args, **kwargs): + """ + logger.exception wrapper + """ + self.logger.exception(exception, *args, **kwargs) + # vim:sw=4:ts=4:et: