Don't translate debug level logs in cloudpipe, hacking, ipv6, keymgr
Our translation policy (https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls for not translating debug level logs. This is to help prioritize log translation. Furthermore translation has a performance overhead, even if the log isn't used (since nova doesn't support lazy translation yet). Change-Id: Icdae100d5a506fdaa56fd124dc9860cdfddbe288
This commit is contained in:
@@ -122,7 +122,7 @@ class CloudPipe(object):
|
||||
return encoded
|
||||
|
||||
def launch_vpn_instance(self, context):
|
||||
LOG.debug(_("Launching VPN for %s") % (context.project_id))
|
||||
LOG.debug("Launching VPN for %s", context.project_id)
|
||||
key_name = self.setup_key_pair(context)
|
||||
group_name = self.setup_security_group(context)
|
||||
flavor = flavors.get_flavor_by_name(CONF.vpn_flavor)
|
||||
|
||||
@@ -219,6 +219,11 @@ def no_translate_debug_logs(logical_line, filename):
|
||||
"nova/cert",
|
||||
"nova/console",
|
||||
"nova/consoleauth",
|
||||
"nova/cloudpipe",
|
||||
"nova/image",
|
||||
"nova/hacking",
|
||||
"nova/ipv6",
|
||||
"nova/keymgr",
|
||||
]
|
||||
if max([name in filename for name in dirs]):
|
||||
if logical_line.startswith("LOG.debug(_("):
|
||||
|
||||
Reference in New Issue
Block a user