Merge "Don't translate debug level logs in nova.conductor"

This commit is contained in:
Jenkins 2014-04-30 13:24:26 +00:00 committed by Gerrit Code Review
commit 8de938e5a5
2 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class LiveMigrationTask(object):
self._check_compatible_with_source_hypervisor(host)
self._call_livem_checks_on_host(host)
except exception.Invalid as e:
LOG.debug(_("Skipping host: %(host)s because: %(e)s") %
LOG.debug("Skipping host: %(host)s because: %(e)s",
{"host": host, "e": e})
attempted_hosts.append(host)
host = None

View File

@ -211,6 +211,7 @@ def no_translate_debug_logs(logical_line, filename):
"nova/volume",
"nova/api",
"nova/cells",
"nova/conductor",
]
if max([name in filename for name in dirs]):
if logical_line.startswith("LOG.debug(_("):