about summary refs log tree commit diff
path: root/gn3/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/debug.py')
-rw-r--r--gn3/debug.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/debug.py b/gn3/debug.py
index ccfcba1..acc2402 100644
--- a/gn3/debug.py
+++ b/gn3/debug.py
@@ -1,9 +1,12 @@
 """Debug utilities"""
 import logging
+from flask import current_app
+
 logger = logging.getLogger(__name__)
 
 def __pk__(*args):
     value = args[-1]
     title_vals = " => ".join(args[0:-1])
-    logger.debug("%s: %s", title_vals, value)
+    current_app.logger.setLevel(logging.DEBUG) # Force debug level since we assume we are using it!
+    current_app.logger.debug("%s: %s", title_vals, value)
     return value