diff options
Diffstat (limited to 'config/doom/snippets')
-rw-r--r-- | config/doom/snippets/python-mode/cmktrace | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/doom/snippets/python-mode/cmktrace b/config/doom/snippets/python-mode/cmktrace new file mode 100644 index 0000000..85f42a3 --- /dev/null +++ b/config/doom/snippets/python-mode/cmktrace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cmktrace +# key: ctrace +# -- +import traceback +from cmk.gui.log import logger +logger.warn("\n\n"+"\n".join(traceback.format_stack())) |