diff options
author | Frederick Muriuki Muriithi | 2023-07-21 08:55:59 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-21 08:55:59 +0300 |
commit | 74e5267c5d3e6ca753a259cc98d9a73aa145ccd7 (patch) | |
tree | 109d4dede921ea7a3b02e632e7dd7886fdfe9817 | |
parent | 8222b37c9510a21ff40d2837d823b1cb50f70734 (diff) | |
download | genenetwork3-74e5267c5d3e6ca753a259cc98d9a73aa145ccd7.tar.gz |
Add some debug utilities.
-rw-r--r-- | gn3/debug.py | 10 |
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 |