use warning log for FIDO error

This commit is contained in:
Son NK 2020-08-12 12:48:51 +02:00
parent 7e5deef34f
commit b395c2ebd0
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"))