diff options
| -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", "") |
