Merge "Python 3 deprecated the logger.warn method in favor of warning"

This commit is contained in:
Jenkins 2016-01-12 09:12:54 +00:00 committed by Gerrit Code Review
commit 542ae6294f
2 changed files with 5 additions and 5 deletions

View File

@ -100,9 +100,9 @@ class KeystoneBackend(object):
else:
msg = _('No authentication backend could be determined to '
'handle the provided credentials.')
LOG.warn('No authentication backend could be determined to '
'handle the provided credentials. This is likely a '
'configuration error that should be addressed.')
LOG.warning('No authentication backend could be determined to '
'handle the provided credentials. This is likely a '
'configuration error that should be addressed.')
raise exceptions.KeystoneAuthException(msg)
session = utils.get_session()

View File

@ -58,8 +58,8 @@ def _get_enforcer():
LOG.debug("adding enforcer for service: %s" % service)
_ENFORCER[service] = enforcer
else:
LOG.warn("policy file for service: %s not found at %s" %
(service, enforcer.policy_path))
LOG.warning("policy file for service: %s not found at %s" %
(service, enforcer.policy_path))
return _ENFORCER