From 3e136dea2b259def305c9032cab5e1a08243c1c6 Mon Sep 17 00:00:00 2001 From: Andrew Laski Date: Fri, 3 May 2013 10:33:18 -0400 Subject: Import latest log module from oslo Deprecates log_format in favor of the formatting options used by the context aware formatter, such as logging_default_format_string. Changes the default logging formatter back to a colorful and context aware formatter. The default was inadvertently changed in the great oslo sync at the start of Havana, this returns it to what was in at the end of Grizzly. Adds support for lazy instantiation of the logger. Bug 1167081 Bug 1165211 Change-Id: Ibe41afc6e9d7b432453785819821b3c8f0078613 --- nova/tests/test_imagecache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/test_imagecache.py b/nova/tests/test_imagecache.py index 02cc7337a..256732ace 100644 --- a/nova/tests/test_imagecache.py +++ b/nova/tests/test_imagecache.py @@ -349,7 +349,7 @@ class ImageCacheManagerTestCase(test.TestCase): mylog = logging.getLogger('nova') stream = cStringIO.StringIO() handler = logging.logging.StreamHandler(stream) - handler.setFormatter(logging.LegacyFormatter()) + handler.setFormatter(logging.ContextFormatter()) mylog.logger.addHandler(handler) yield stream finally: -- cgit