From 4ad93a0ea9a0600d77ac8f1f6fdd66414b1ea14d Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Thu, 3 Jun 2021 17:31:27 +0100 Subject: [PATCH] add logging when webauthn cred registration fails --- app/main/views/webauthn_credentials.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main/views/webauthn_credentials.py b/app/main/views/webauthn_credentials.py index d20b93ed0..d1b458da6 100644 --- a/app/main/views/webauthn_credentials.py +++ b/app/main/views/webauthn_credentials.py @@ -49,6 +49,7 @@ def webauthn_complete_register(): cbor.decode(request.get_data()), ) except RegistrationError as e: + current_app.logger.info(f'User {current_user.id} could not register a new webauthn token - {e}') return cbor.encode(str(e)), 400 user_api_client.create_webauthn_credential_for_user(