From 64c34e14de60f4c886587ebe35cfccfdcff2e0b4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 12 Sep 2024 08:57:58 -0500 Subject: BugFix: assign value and use variable. --- gn3/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gn3/debug.py b/gn3/debug.py index 3c88bd3..945e237 100644 --- a/gn3/debug.py +++ b/gn3/debug.py @@ -2,11 +2,11 @@ import logging from flask import current_app -__this_module_name__ == __name__ +__this_module_name__ = __name__ def getLogger(): return ( - logging.getLogger(__name__) + logging.getLogger(__this_module_name__) if not bool(current_app) else current_app.logger) -- cgit v1.2.3