summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-05-05 20:07:19 +0000
committerGerrit Code Review <review@openstack.org>2013-05-05 20:07:19 +0000
commit7bd267d5adeae405e6c7ae44624927aebddb918d (patch)
tree847e747502b40082dbc0bd35cb1c1301b2cf42cf /nova/tests
parent768885350769b8bb622e7a1c2da7657cc46a74fb (diff)
parent3e136dea2b259def305c9032cab5e1a08243c1c6 (diff)
Merge "Import latest log module from oslo"
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: