aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/debug.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn3/debug.py b/gn3/debug.py
new file mode 100644
index 0000000..0c8f2f5
--- /dev/null
+++ b/gn3/debug.py
@@ -0,0 +1,10 @@
+"""Debug utilities"""
+
+import logging
+
+logger = logging.getLogger(__name__)
+
+def __pk__(value, title="DEBUG"):
+ """Peek the value and return it."""
+ logger.debug("%s: %s", title, value)
+ return value