diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-07 20:11:55 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-08 21:53:55 +0000 |
| commit | 2b538441a8aafde5dcc48939a091f22d1303f3bf (patch) | |
| tree | 210f3668fbd5ae6ae1c378e9b11d8a2ea4dde9fd /nova/tests | |
| parent | 85ae58c21fc9019dfef5585accd53bdc667debde (diff) | |
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
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/scheduler/test_host_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
