forked from platypush/platypush
Added .exception
action to logger plugin
This commit is contained in:
parent
9c25a131fa
commit
2c4c27855d
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@ class LoggerPlugin(Plugin):
|
||||||
"""
|
"""
|
||||||
self.logger.error(msg, *args, **kwargs)
|
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:
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue