summaryrefslogtreecommitdiffstats
path: root/nova/volume
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/volume
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/volume')
-rw-r--r--nova/volume/driver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py
index f00eb0800..a9facac91 100644
--- a/nova/volume/driver.py
+++ b/nova/volume/driver.py
@@ -446,8 +446,8 @@ class ISCSIDriver(VolumeDriver):
# Instances remount read-only in this case.
# /etc/init.d/iscsitarget restart and rebooting nova-volume
# is better since ensure_export() works at boot time.
- logging.error(_("Cannot confirm exported volume "
- "id:%(volume_id)s.") % locals())
+ LOG.error(_("Cannot confirm exported volume "
+ "id:%(volume_id)s.") % locals())
raise