summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-02-07 20:11:55 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-02-08 21:53:55 +0000
commit2b538441a8aafde5dcc48939a091f22d1303f3bf (patch)
tree210f3668fbd5ae6ae1c378e9b11d8a2ea4dde9fd /nova/compute
parent85ae58c21fc9019dfef5585accd53bdc667debde (diff)
downloadnova-2b538441a8aafde5dcc48939a091f22d1303f3bf.tar.gz
nova-2b538441a8aafde5dcc48939a091f22d1303f3bf.tar.xz
nova-2b538441a8aafde5dcc48939a091f22d1303f3bf.zip
Use named logger when available
Cleanup a handful of places where named loggers are created for a particular module but aren't used consistently. Also fix a couple of log entries that aren't internationalized Change-Id: I38186d47e7f31626b3ead779707d8ee5a15f56ac
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 2f4d3e200..1028dd118 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -269,8 +269,8 @@ class API(base.Base):
ramdisk_id = None
LOG.debug(_("Creating a raw instance"))
# Make sure we have access to kernel and ramdisk (if not raw)
- logging.debug("Using Kernel=%s, Ramdisk=%s" %
- (kernel_id, ramdisk_id))
+ LOG.debug(_("Using Kernel=%(kernel_id)s, Ramdisk=%(ramdisk_id)s")
+ % locals())
if kernel_id:
image_service.show(context, kernel_id)
if ramdisk_id: