Quote/standardize atom name output
In most places we quote it so we might as well quote it here so that the logs when examined look similar vs not looking similar. Change-Id: Ie61ea31a1fe1b4575ef512f0a15986e90c446d0e
This commit is contained in:
committed by
Joshua Harlow
parent
60cb2c7543
commit
6742532a6b
@@ -851,7 +851,7 @@ class Storage(object):
|
||||
missing = set(six.iterkeys(args_mapping))
|
||||
for (bound_name, name) in six.iteritems(args_mapping):
|
||||
if LOG.isEnabledFor(logging.TRACE):
|
||||
LOG.trace("Looking for %r <= %r for atom named: %s",
|
||||
LOG.trace("Looking for %r <= %r for atom '%s'",
|
||||
bound_name, name, atom_name)
|
||||
if bound_name in optional_args:
|
||||
LOG.trace("Argument %r is optional, skipping", bound_name)
|
||||
@@ -866,7 +866,7 @@ class Storage(object):
|
||||
providers = _locate_providers(name, scope_walker=scope_walker)
|
||||
maybe_providers += len(providers)
|
||||
if maybe_providers:
|
||||
LOG.trace("Atom %s will have %s potential providers"
|
||||
LOG.trace("Atom '%s' will have %s potential providers"
|
||||
" of %r <= %r", atom_name, maybe_providers,
|
||||
bound_name, name)
|
||||
missing.discard(bound_name)
|
||||
@@ -964,7 +964,7 @@ class Storage(object):
|
||||
for (bound_name, name) in six.iteritems(args_mapping):
|
||||
if LOG.isEnabledFor(logging.TRACE):
|
||||
if atom_name:
|
||||
LOG.trace("Looking for %r <= %r for atom named: %s",
|
||||
LOG.trace("Looking for %r <= %r for atom '%s'",
|
||||
bound_name, name, atom_name)
|
||||
else:
|
||||
LOG.trace("Looking for %r <= %r", bound_name, name)
|
||||
|
||||
Reference in New Issue
Block a user