Change log level to error when auth provider failed loading (#16235)
This commit is contained in:
parent
573f5de148
commit
d994d6bfad
2 changed files with 4 additions and 4 deletions
|
@ -152,8 +152,8 @@ async def _load_mfa_module(hass: HomeAssistant, module_name: str) \
|
|||
|
||||
try:
|
||||
module = importlib.import_module(module_path)
|
||||
except ImportError:
|
||||
_LOGGER.warning('Unable to find %s', module_path)
|
||||
except ImportError as err:
|
||||
_LOGGER.error('Unable to load mfa module %s: %s', module_name, err)
|
||||
return None
|
||||
|
||||
if hass.config.skip_pip or not hasattr(module, 'REQUIREMENTS'):
|
||||
|
|
|
@ -134,8 +134,8 @@ async def load_auth_provider_module(
|
|||
try:
|
||||
module = importlib.import_module(
|
||||
'homeassistant.auth.providers.{}'.format(provider))
|
||||
except ImportError:
|
||||
_LOGGER.warning('Unable to find auth provider %s', provider)
|
||||
except ImportError as err:
|
||||
_LOGGER.error('Unable to load auth provider %s: %s', provider, err)
|
||||
return None
|
||||
|
||||
if hass.config.skip_pip or not hasattr(module, 'REQUIREMENTS'):
|
||||
|
|
Loading…
Add table
Reference in a new issue