diff options
| author | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 10:13:29 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-22 10:13:29 -0500 |
| commit | a50a966d5a27a6a0ba166395cdb7be5989a5fb54 (patch) | |
| tree | 8aacca9b39aef929194f781cffb40b9f168d682f /gn_auth | |
| parent | e7b2a1310716912da349738a03a5365b9f3736f2 (diff) | |
| download | gn-auth-main.tar.gz | |
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.py | 2 |
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", "") |
