summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_imagecache.py2
1 files changed, 1 insertions, 1 deletions
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: