about summary refs log tree commit diff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-22 10:13:29 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-22 10:13:29 -0500
commita50a966d5a27a6a0ba166395cdb7be5989a5fb54 (patch)
tree8aacca9b39aef929194f781cffb40b9f168d682f /gn_auth
parente7b2a1310716912da349738a03a5365b9f3736f2 (diff)
downloadgn-auth-main.tar.gz
Change to error logging rather than debug. HEAD main
If a token-related error occurs, log it out as an error log, rather
than debug, so that we can track them and fix the causes (where we
can) whenever they occur.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/errors/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/errors/common.py b/gn_auth/errors/common.py
index 35e4d21..d9e1bd3 100644
--- a/gn_auth/errors/common.py
+++ b/gn_auth/errors/common.py
@@ -30,7 +30,7 @@ def build_handler(description: str) -> Callable[[Exception], Response]:
     """Generic utility to build error handlers."""
     def __handler__(exc: Exception) -> Response:
         """Handle the exception as appropriate for requests of different mimetypes."""
-        logger.debug("EXCEPTION: %s", exc, exc_info=True)
+        logger.error("EXCEPTION: %s", exc, exc_info=True)
         error = (exc.name if hasattr(exc, "name") else exc.__class__.__name__)
         status_code = __status_code__(exc)
         if ("application/json" in request.headers.get("Accept", "")