diff options
author | Gary Kotton <gkotton@vmware.com> | 2014-04-30 05:50:21 -0700 |
---|---|---|
committer | Gary Kotton <gkotton@vmware.com> | 2014-06-08 00:36:49 -0700 |
commit | cfd0846498c21f250321482316b32d4519ed622c (patch) | |
tree | 8ef510a98e45bcfd2db6d16e6e268f230e7ef340 /nova/virt/driver.py | |
parent | 4d7a65d9f16b2a987babb0439bd36030833c16ab (diff) | |
download | nova-cfd0846498c21f250321482316b32d4519ed622c.tar.gz |
Don't translate debug level logs in nova.virt
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: I524b48f530d8afd59a067074332e3964426e4d70
Diffstat (limited to 'nova/virt/driver.py')
-rw-r--r-- | nova/virt/driver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/driver.py b/nova/virt/driver.py index f31b3eb04e..6689e7bc84 100644 --- a/nova/virt/driver.py +++ b/nova/virt/driver.py @@ -1199,7 +1199,7 @@ class ComputeDriver(object): """ if not self._compute_event_callback: - LOG.debug(_("Discarding event %s") % str(event)) + LOG.debug("Discarding event %s", str(event)) return if not isinstance(event, virtevent.Event): @@ -1207,7 +1207,7 @@ class ComputeDriver(object): _("Event must be an instance of nova.virt.event.Event")) try: - LOG.debug(_("Emitting event %s") % str(event)) + LOG.debug("Emitting event %s", str(event)) self._compute_event_callback(event) except Exception as ex: LOG.error(_("Exception dispatching event %(event)s: %(ex)s"), |