summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-21 15:53:24 +0000
committerGerrit Code Review <review@openstack.org>2012-05-21 15:53:24 +0000
commit53583faac261f2272f81da2ee2efaff0e10bc400 (patch)
tree19e1158c4a66557d0878e5193df73e59d282242e /nova
parent0d4c0e7fbc8bdd0d9c9503b09cf4590b696daf60 (diff)
parentf51f387b8cb8058a8f5a0c486c256a7a4d79b37d (diff)
downloadnova-53583faac261f2272f81da2ee2efaff0e10bc400.tar.gz
nova-53583faac261f2272f81da2ee2efaff0e10bc400.tar.xz
nova-53583faac261f2272f81da2ee2efaff0e10bc400.zip
Merge "Cleanup LOG.getLoggers to use __name__"
Diffstat (limited to 'nova')
-rw-r--r--nova/api/openstack/compute/contrib/extended_server_attributes.py3
-rw-r--r--nova/network/quantum/sg.py2
-rw-r--r--nova/tests/api/ec2/test_ec2_validate.py2
-rw-r--r--nova/tests/test_migrations.py2
-rw-r--r--nova/tests/test_netapp.py2
-rw-r--r--nova/virt/xenapi/pool.py2
-rw-r--r--nova/volume/netapp.py2
-rw-r--r--nova/volume/nexenta/jsonrpc.py2
-rw-r--r--nova/volume/nexenta/volume.py2
9 files changed, 9 insertions, 10 deletions
diff --git a/nova/api/openstack/compute/contrib/extended_server_attributes.py b/nova/api/openstack/compute/contrib/extended_server_attributes.py
index 9b7d5f6db..2da5badc3 100644
--- a/nova/api/openstack/compute/contrib/extended_server_attributes.py
+++ b/nova/api/openstack/compute/contrib/extended_server_attributes.py
@@ -27,8 +27,7 @@ from nova import log as logging
FLAGS = flags.FLAGS
-LOG = logging.getLogger("nova.api.openstack.compute.contrib."
- "extended_server_attributes")
+LOG = logging.getLogger(__name__)
authorize = extensions.soft_extension_authorizer('compute',
'extended_server_attributes')
diff --git a/nova/network/quantum/sg.py b/nova/network/quantum/sg.py
index 93ba6be11..7212280c5 100644
--- a/nova/network/quantum/sg.py
+++ b/nova/network/quantum/sg.py
@@ -30,7 +30,7 @@ security_group_handler flag.
from nova import log as logging
-LOG = logging.getLogger('nova.network.api.quantum.sg')
+LOG = logging.getLogger(__name__)
class SecurityGroupHandlerBase(object):
diff --git a/nova/tests/api/ec2/test_ec2_validate.py b/nova/tests/api/ec2/test_ec2_validate.py
index ae494ccde..5def89175 100644
--- a/nova/tests/api/ec2/test_ec2_validate.py
+++ b/nova/tests/api/ec2/test_ec2_validate.py
@@ -34,7 +34,7 @@ from nova.openstack.common import importutils
from nova import rpc
from nova import test
-LOG = logging.getLogger('nova.tests.ec2_validate')
+LOG = logging.getLogger(__name__)
FLAGS = flags.FLAGS
diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py
index 559a06faf..5467418c4 100644
--- a/nova/tests/test_migrations.py
+++ b/nova/tests/test_migrations.py
@@ -38,7 +38,7 @@ from nova.db.sqlalchemy.migration import versioning_api as migration_api
from nova import log as logging
from nova import test
-LOG = logging.getLogger('nova.tests.test_migrations')
+LOG = logging.getLogger(__name__)
def _mysql_get_connect_string(user="openstack_citest",
diff --git a/nova/tests/test_netapp.py b/nova/tests/test_netapp.py
index 579227c78..0688a6596 100644
--- a/nova/tests/test_netapp.py
+++ b/nova/tests/test_netapp.py
@@ -29,7 +29,7 @@ from nova import log as logging
from nova import test
from nova.volume import netapp
-LOG = logging.getLogger("nova.volume.driver")
+LOG = logging.getLogger(__name__)
WSDL_HEADER = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
diff --git a/nova/virt/xenapi/pool.py b/nova/virt/xenapi/pool.py
index 4609b7eff..f3cce22a9 100644
--- a/nova/virt/xenapi/pool.py
+++ b/nova/virt/xenapi/pool.py
@@ -31,7 +31,7 @@ from nova.openstack.common import cfg
from nova import rpc
from nova.virt.xenapi import vm_utils
-LOG = logging.getLogger("nova.virt.xenapi.pool")
+LOG = logging.getLogger(__name__)
xenapi_pool_opts = [
cfg.BoolOpt('use_join_force',
diff --git a/nova/volume/netapp.py b/nova/volume/netapp.py
index 711d8a140..897da6204 100644
--- a/nova/volume/netapp.py
+++ b/nova/volume/netapp.py
@@ -36,7 +36,7 @@ from nova import log as logging
from nova.openstack.common import cfg
from nova.volume import driver
-LOG = logging.getLogger("nova.volume.driver")
+LOG = logging.getLogger(__name__)
netapp_opts = [
cfg.StrOpt('netapp_wsdl_url',
diff --git a/nova/volume/nexenta/jsonrpc.py b/nova/volume/nexenta/jsonrpc.py
index 03921bfdb..ced29888b 100644
--- a/nova/volume/nexenta/jsonrpc.py
+++ b/nova/volume/nexenta/jsonrpc.py
@@ -28,7 +28,7 @@ import urllib2
from nova import log as logging
from nova.volume import nexenta
-LOG = logging.getLogger("nova.volume.nexenta.jsonrpc")
+LOG = logging.getLogger(__name__)
class NexentaJSONException(nexenta.NexentaException):
diff --git a/nova/volume/nexenta/volume.py b/nova/volume/nexenta/volume.py
index 532698ba7..784d48d4f 100644
--- a/nova/volume/nexenta/volume.py
+++ b/nova/volume/nexenta/volume.py
@@ -30,7 +30,7 @@ from nova.volume import driver
from nova.volume import nexenta
from nova.volume.nexenta import jsonrpc
-LOG = logging.getLogger("nova.volume.nexenta.volume")
+LOG = logging.getLogger(__name__)
FLAGS = flags.FLAGS
nexenta_opts = [