From f51f387b8cb8058a8f5a0c486c256a7a4d79b37d Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Mon, 21 May 2012 15:55:52 +0800 Subject: Cleanup LOG.getLoggers to use __name__ Fixes bug #1002191 Change-Id: I166c6bf535ac097e3e6f64158bde0c7f5448a7b3 --- nova/tests/api/ec2/test_ec2_validate.py | 2 +- nova/tests/test_migrations.py | 2 +- nova/tests/test_netapp.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'nova/tests') 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 = """ -- cgit