format log messages in exception class

This commit is contained in:
2022-11-04 00:12:42 +01:00
parent d41c3da290
commit 8aff5c8008
6 changed files with 7 additions and 7 deletions

View File

@ -87,7 +87,7 @@ class d3webauthnlogin extends FrontendController
$this->addTplParam('webauthn_publickey_login', $publicKeyCredentialRequestOptions);
} catch (WebauthnException $e) {
Registry::getSession()->setVariable(WebauthnConf::GLOBAL_SWITCH, true);
Registry::getLogger()->error('webauthn request options: '.$e->getDetailedErrorMessage(), ['UserId' => $userId]);
Registry::getLogger()->error($e->getDetailedErrorMessage(), ['UserId' => $userId]);
Registry::getLogger()->debug($e->getTraceAsString());
Registry::getUtilsView()->addErrorToDisplay($e);
$this->getUtils()->redirect('index.php?cl=start');