Dropped log level to warn on SAML error

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-02 17:07:49 -07:00
parent b5ddc2c85b
commit 910fc08406

View file

@ -134,7 +134,7 @@ class Saml
$this->_auth = new OneLogin_Saml2_Auth($this->_settings);
} catch (Exception $e) {
if ( $this->isEnabled() ) { // $this->loadSettings() initializes this to true if SAML is enabled by settings.
\Log::error('Trying OneLogin_Saml2_Auth failed. Setting SAML enabled to false. OneLogin_Saml2_Auth error message is: '. $e->getMessage());
\Log::warning('Trying OneLogin_Saml2_Auth failed. Setting SAML enabled to false. OneLogin_Saml2_Auth error message is: '. $e->getMessage());
}
$this->_enabled = false;
}