aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-21 08:55:59 +0300
committerFrederick Muriuki Muriithi2023-07-21 08:55:59 +0300
commit74e5267c5d3e6ca753a259cc98d9a73aa145ccd7 (patch)
tree109d4dede921ea7a3b02e632e7dd7886fdfe9817
parent8222b37c9510a21ff40d2837d823b1cb50f70734 (diff)
downloadgenenetwork3-74e5267c5d3e6ca753a259cc98d9a73aa145ccd7.tar.gz
Add some debug utilities.
-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