Merge "Log retries at INFO level per guidelines"
This commit is contained in:
commit
d6ead5eb7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue