Change log level to error when auth provider failed loading (#16235)

This commit is contained in:
Jason Hu authored and Paulus Schoutsen committed 2018-08-28 11:23:58 +02:00
1 parent a14980716d
commit 67df162bcc
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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'):
+2 -2
View File
@@ -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'):