about summary refs log tree commit diff
path: root/gn_auth/debug.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-05-01 15:05:11 -0500
committerFrederick Muriuki Muriithi2026-05-01 15:05:11 -0500
commit8a11dda78f1142347c85d943b11bf0a48e8530fe (patch)
tree86b7578eb9945e506f3690877df633e0e27955ec /gn_auth/debug.py
parentc8176603fb3d6ac8cd4c917dde397dd0de9faf03 (diff)
downloadgn-auth-8a11dda78f1142347c85d943b11bf0a48e8530fe.tar.gz
Use module-level logging rather than the app's logger. HEAD main
Diffstat (limited to 'gn_auth/debug.py')
-rw-r--r--gn_auth/debug.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/gn_auth/debug.py b/gn_auth/debug.py
deleted file mode 100644
index 6b7173b..0000000
--- a/gn_auth/debug.py
+++ /dev/null
@@ -1,22 +0,0 @@
-"""Debug utilities"""
-import logging
-from flask import current_app
-
-__this_module_name__ = __name__
-
-
-# pylint: disable=invalid-name
-def getLogger(name: str):
-    """Return a logger"""
-    return (
-        logging.getLogger(name)
-        if not bool(current_app)
-        else current_app.logger)
-
-def __pk__(*args):
-    """Format log entry"""
-    value = args[-1]
-    title_vals = " => ".join(args[0:-1])
-    logger = getLogger(__this_module_name__)
-    logger.debug("%s: %s", title_vals, value)
-    return value