about summary refs log tree commit diff
diff options
context:
space:
mode:
-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