diff options
author | Frederick Muriuki Muriithi | 2023-10-25 16:15:08 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-10-25 16:15:08 +0300 |
commit | 8462b5967f2ebab3487f2971a625a1942c9cf542 (patch) | |
tree | 0a859076ae2cb0eddbf535e6715ec91c12f91daa | |
parent | 981bfad8101bb5efd5f4064b11c9da055e376fd3 (diff) | |
download | genenetwork3-8462b5967f2ebab3487f2971a625a1942c9cf542.tar.gz |
Update __pk__
-rw-r--r-- | gn3/debug.py | 9 |
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 |