From b395c2ebd0922f142f6581d386ec634f38c2735b Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Wed, 12 Aug 2020 12:48:51 +0200 Subject: [PATCH] use warning log for FIDO error --- app/auth/views/fido.py | 2 +- app/dashboard/views/fido_setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/auth/views/fido.py b/app/auth/views/fido.py index 579c1bc3..d2b374d1 100644 --- a/app/auth/views/fido.py +++ b/app/auth/views/fido.py @@ -94,7 +94,7 @@ def fido(): ) new_sign_count = webauthn_assertion_response.verify() except Exception as e: - LOG.exception(f"An error occurred in WebAuthn verification process: {e}") + LOG.warning(f"An error occurred in WebAuthn verification process: {e}") flash("Key verification failed.", "warning") # Trigger rate limiter g.deduct_limit = True diff --git a/app/dashboard/views/fido_setup.py b/app/dashboard/views/fido_setup.py index e7b8f63e..ddc7717c 100644 --- a/app/dashboard/views/fido_setup.py +++ b/app/dashboard/views/fido_setup.py @@ -56,7 +56,7 @@ def fido_setup(): try: fido_credential = fido_reg_response.verify() except Exception as e: - LOG.exception(f"An error occurred in WebAuthn registration process: {e}") + LOG.warning(f"An error occurred in WebAuthn registration process: {e}") flash("Key registration failed.", "warning") return redirect(url_for("dashboard.index"))