From d81d0f0074f73963340d01c07440b0a271629b29 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 13 Jul 2012 15:36:06 +0000 Subject: Remove unnecessary logging from API When retrieving a list with a lot of instances (thousands), a significant part of the time is spent logging debug messages. These messages don't provide much value anymore and just slow things down unnecessarily. Change-Id: I52cbec2b236bac587776c8a56e0f8dcae05294cf --- nova/api/openstack/common.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index 88c81a578..bb07b2b79 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -99,9 +99,6 @@ def status_from_state(vm_state, task_state='default'): LOG.error(_("status is UNKNOWN from vm_state=%(vm_state)s " "task_state=%(task_state)s. Bad upgrade or db " "corrupted?") % locals()) - else: - LOG.debug(_("Generated %(status)s from vm_state=%(vm_state)s " - "task_state=%(task_state)s.") % locals()) return status @@ -313,7 +310,6 @@ def dict_to_query_str(params): def get_networks_for_instance_from_nw_info(nw_info): networks = {} - LOG.debug(_('Converting nw_info: %s') % nw_info) for vif in nw_info: ips = vif.fixed_ips() floaters = vif.floating_ips() @@ -323,7 +319,6 @@ def get_networks_for_instance_from_nw_info(nw_info): networks[label]['ips'].extend(ips) networks[label]['floating_ips'].extend(floaters) - LOG.debug(_('Converted networks: %s') % networks) return networks -- cgit