Skip to content

Commit

Permalink
Do not tie debug mode to SSP debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 30, 2021
1 parent f5c2cc1 commit 2aa04c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config-templates/module_webauthn.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

$config = [
/* Enable/disable Debug made */
'debug' => false,

/* required configuration parameters */
'store' => [
'webauthn:Database',
Expand Down
4 changes: 2 additions & 2 deletions www/authprocess.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
);
}

$config = Configuration::getInstance();
$debugEnabled = $config->getValue('logging.level', Logger::NOTICE) === Logger::DEBUG;
$moduleConfig = Configuration::getOptionalConfig('module_webauthn.php');
$debugEnabled = $moduleConfig->getBoolean('debug', false);

$id = $_REQUEST['StateId'];
/** @var array $state */
Expand Down
4 changes: 2 additions & 2 deletions www/regprocess.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
);
}

$config = Configuration::getInstance();
$debugEnabled = $config->getValue('logging.level', Logger::NOTICE) === Logger::DEBUG;
$moduleConfig = Configuration::getOptionalConfig('module_webauthn.php');
$debugEnabled = $moduleConfig->getBoolean('debug', false);

$id = $_REQUEST['StateId'];
/** @var array $state */
Expand Down

0 comments on commit 2aa04c5

Please sign in to comment.