Merge "add time to logging in unit tests"

This commit is contained in:
Jenkins 2014-09-25 04:50:13 +00:00 committed by Gerrit Code Review
commit af12271d29

View File

@ -271,7 +271,7 @@ class TestCase(testtools.TestCase):
level = logging.INFO level = logging.INFO
# Collect logs # Collect logs
fs = '%(levelname)s [%(name)s] %(message)s' fs = '%(asctime)s %(levelname)s [%(name)s] %(message)s'
self.useFixture(fixtures.FakeLogger(format=fs, level=None)) self.useFixture(fixtures.FakeLogger(format=fs, level=None))
root.handlers[0].setLevel(level) root.handlers[0].setLevel(level)