Added `.exception` action to logger plugin

keep-around/486801653a1dc0ba64316031b837d822305a65cc
Fabio Manganiello 6 months ago
parent f7c594cc3f
commit 486801653a
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
  1. 7
      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:

Loading…
Cancel
Save