diff options
Diffstat (limited to 'gn2/wqflask/app_errors.py')
-rw-r--r-- | gn2/wqflask/app_errors.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn2/wqflask/app_errors.py b/gn2/wqflask/app_errors.py index 5b85bd53..7c07fde6 100644 --- a/gn2/wqflask/app_errors.py +++ b/gn2/wqflask/app_errors.py @@ -51,6 +51,7 @@ def handle_invalid_token_error(exc: InvalidTokenError): flash("An invalid session token was detected. " "You have been logged out of the system.", "alert-danger") + current_app.logger.error("Invalit token detected. %s", request.url, exc_info=True) session.clear_session_info() return redirect("/") @@ -71,6 +72,7 @@ def handle_oauth_error(exc: OAuthError): flash((f"{type(exc).__name__}: {__build_message__(exc)} " "Please log in again to continue."), "alert-danger") + current_app.logger.error("Invalit token detected. %s", request.url, exc_info=True) session.clear_session_info() return redirect("/") |