about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-10-25 16:15:08 +0300
committerFrederick Muriuki Muriithi2023-10-25 16:15:08 +0300
commit8462b5967f2ebab3487f2971a625a1942c9cf542 (patch)
tree0a859076ae2cb0eddbf535e6715ec91c12f91daa
parent981bfad8101bb5efd5f4064b11c9da055e376fd3 (diff)
downloadgenenetwork3-8462b5967f2ebab3487f2971a625a1942c9cf542.tar.gz
Update __pk__
-rw-r--r--gn3/debug.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/gn3/debug.py b/gn3/debug.py
index 0c8f2f5..ccfcba1 100644
--- a/gn3/debug.py
+++ b/gn3/debug.py
@@ -1,10 +1,9 @@
 """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)
+def __pk__(*args):
+    value = args[-1]
+    title_vals = " => ".join(args[0:-1])
+    logger.debug("%s: %s", title_vals, value)
     return value