From 2b538441a8aafde5dcc48939a091f22d1303f3bf Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Tue, 7 Feb 2012 20:11:55 +0000 Subject: Use named logger when available Cleanup a handful of places where named loggers are created for a particular module but aren't used consistently. Also fix a couple of log entries that aren't internationalized Change-Id: I38186d47e7f31626b3ead779707d8ee5a15f56ac --- nova/tests/scheduler/test_host_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/scheduler/test_host_manager.py b/nova/tests/scheduler/test_host_manager.py index 9ea00397f..0ee1d0470 100644 --- a/nova/tests/scheduler/test_host_manager.py +++ b/nova/tests/scheduler/test_host_manager.py @@ -249,12 +249,12 @@ class HostManagerTestCase(test.TestCase): topic = 'compute' self.mox.StubOutWithMock(db, 'compute_node_get_all') - self.mox.StubOutWithMock(logging, 'warn') + self.mox.StubOutWithMock(host_manager.LOG, 'warn') self.mox.StubOutWithMock(db, 'instance_get_all') db.compute_node_get_all(context).AndReturn(fakes.COMPUTE_NODES) # Invalid service - logging.warn("No service for compute ID 5") + host_manager.LOG.warn("No service for compute ID 5") db.instance_get_all(context).AndReturn(fakes.INSTANCES) self.mox.ReplayAll() -- cgit