Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Platypush
platypush
Commits
48680165
Verified
Commit
48680165
authored
Apr 03, 2022
by
Fabio Manganiello
Browse files
Added `.exception` action to logger plugin
parent
f7c594cc
Pipeline
#186
passed with stages
in 7 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
platypush/plugins/logger/__init__.py
View file @
48680165
...
...
@@ -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:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment