From c137b55b627e75df93900ece644ab63b1c194709 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 25 Mar 2013 18:05:02 -0400 Subject: [PATCH] set up FakeLogger for root logger. A recent change in openstack.common.log was made such that it initialized the root logger instead of the project specific logger, 'nova' in this case. Update the unit tests for this to fix the problem where unit tests spam the console with log output. Fix bug 1159978. Change-Id: Id64a5b078b4024c3269086ed5d64940b3a38ddfa --- nova/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/test.py b/nova/test.py index e917e6c2a..c937a1e85 100644 --- a/nova/test.py +++ b/nova/test.py @@ -210,7 +210,7 @@ class TestCase(testtools.TestCase): stderr = self.useFixture(fixtures.StringStream('stderr')).stream self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr)) - self.log_fixture = self.useFixture(fixtures.FakeLogger('nova')) + self.log_fixture = self.useFixture(fixtures.FakeLogger()) self.useFixture(conf_fixture.ConfFixture(CONF)) global _DB_CACHE