aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom/snippets/python-mode
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-07-19 10:06:43 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-07-19 10:06:43 +0200
commit2665381cf6c43a28e8a930ab9215272bffa5f787 (patch)
tree5d4294c6b87e6ada1a5cad0d3bb3797a809a81a2 /config/doom/snippets/python-mode
parent832e67ce4399a8d960ca89fae4a823129a031484 (diff)
downloaddotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.tar.gz
dotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.tar.bz2
dotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.zip
cmk dev
Diffstat (limited to 'config/doom/snippets/python-mode')
-rw-r--r--config/doom/snippets/python-mode/cmktrace7
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()))