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
This commit is contained in:
Russell Bryant 2013-03-25 18:05:02 -04:00
parent 58cc26c4dc
commit d6a9d38a0b

View File

@ -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