Merge "Log retries at INFO level per guidelines"

This commit is contained in:
Jenkins 2016-01-26 13:11:57 +00:00 committed by Gerrit Code Review
commit d6ead5eb7b
1 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@
from oslo_log import log as logging
from nova.i18n import _LI
from nova.scheduler import filters
LOG = logging.getLogger(__name__)
@ -43,8 +44,8 @@ class RetryFilter(filters.BaseHostFilter):
passes = host not in hosts
if not passes:
LOG.debug("Host %(host)s fails. Previously tried hosts: "
"%(hosts)s", {'host': host, 'hosts': hosts})
LOG.info(_LI("Host %(host)s fails. Previously tried hosts: "
"%(hosts)s"), {'host': host, 'hosts': hosts})
# Host passes if it's not in the list of previously attempted hosts:
return passes