From 2b538441a8aafde5dcc48939a091f22d1303f3bf Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Tue, 7 Feb 2012 20:11:55 +0000 Subject: 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 --- nova/compute/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/compute') 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: -- cgit