Remove unnecessary LOG initialisation

Remove a lot of getLogger lines and imports of logging in modules
which never use that functionality.

Change-Id: Icdaee2c540980412b000d02ebf1ec568dcf5b38a
This commit is contained in:
Stanislaw Pitucha
2013-04-10 13:26:12 +00:00
parent ead58f1522
commit 0faaf97e40
4 changed files with 0 additions and 10 deletions

View File

@@ -39,8 +39,6 @@ CONF = cfg.CONF
CONF.import_opt('compute_manager', 'nova.service') CONF.import_opt('compute_manager', 'nova.service')
CONF.import_opt('host', 'nova.netconf') CONF.import_opt('host', 'nova.netconf')
LOG = logging.getLogger(__name__)
class ImageCacheManagerTestCase(test.TestCase): class ImageCacheManagerTestCase(test.TestCase):

View File

@@ -23,11 +23,8 @@ from nova import db
from nova.db.sqlalchemy import models from nova.db.sqlalchemy import models
from nova import exception from nova import exception
from nova.openstack.common.db.sqlalchemy import session as sql_session from nova.openstack.common.db.sqlalchemy import session as sql_session
from nova.openstack.common import log as logging
from nova import test from nova import test
LOG = logging.getLogger(__name__)
class InstanceTypeTestCase(test.TestCase): class InstanceTypeTestCase(test.TestCase):
"""Test cases for instance type code.""" """Test cases for instance type code."""

View File

@@ -42,7 +42,6 @@ from nova import exception
from nova.openstack.common import fileutils from nova.openstack.common import fileutils
from nova.openstack.common import importutils from nova.openstack.common import importutils
from nova.openstack.common import jsonutils from nova.openstack.common import jsonutils
from nova.openstack.common import log as logging
from nova.openstack.common import uuidutils from nova.openstack.common import uuidutils
from nova import test from nova import test
from nova.tests import fake_libvirt_utils from nova.tests import fake_libvirt_utils
@@ -77,7 +76,6 @@ CONF.import_opt('compute_manager', 'nova.service')
CONF.import_opt('host', 'nova.netconf') CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('my_ip', 'nova.netconf') CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('base_dir_name', 'nova.virt.libvirt.imagecache') CONF.import_opt('base_dir_name', 'nova.virt.libvirt.imagecache')
LOG = logging.getLogger(__name__)
_fake_network_info = fake_network.fake_get_instance_nw_info _fake_network_info = fake_network.fake_get_instance_nw_info
_fake_stub_out_get_nw_info = fake_network.stub_out_nw_api_get_instance_nw_info _fake_stub_out_get_nw_info = fake_network.stub_out_nw_api_get_instance_nw_info

View File

@@ -28,7 +28,6 @@ from nova.compute import instance_types
from nova.compute import power_state from nova.compute import power_state
from nova.compute import task_states from nova.compute import task_states
from nova.network import model as network_model from nova.network import model as network_model
from nova.openstack.common import log as logging
from nova.tests import fake_network_cache_model from nova.tests import fake_network_cache_model
from nova.tests.image import fake from nova.tests.image import fake
from nova.virt import images from nova.virt import images
@@ -39,8 +38,6 @@ from nova.virt.powervm import exception
from nova.virt.powervm import lpar from nova.virt.powervm import lpar
from nova.virt.powervm import operator from nova.virt.powervm import operator
LOG = logging.getLogger(__name__)
def fake_lpar(instance_name): def fake_lpar(instance_name):
return lpar.LPAR(name=instance_name, return lpar.LPAR(name=instance_name,