Change to error logging rather than debug.
HEAD mainIf 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.
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", "")
|