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

pull/16241/head
Jason Hu 2018-08-28 02:23:58 -07:00 committed by Paulus Schoutsen
parent a14980716d
commit 67df162bcc
2 changed files with 4 additions and 4 deletions
homeassistant/auth
mfa_modules
providers

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'):

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'):