]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove/update unused log arguements in manager
authorMike Perez <thingee@gmail.com>
Sat, 9 Mar 2013 08:40:39 +0000 (00:40 -0800)
committerMike Perez <thingee@gmail.com>
Sat, 9 Mar 2013 08:57:58 +0000 (00:57 -0800)
Fixes: bug #1130867
Change-Id: I6f9a9c33530e92fa9ce22bd44ef7c40f7e355b04

cinder/volume/manager.py

index 3efc9a60cccdf88a2fde6749ff483e4d49dd3a6e..c317d4e65179323d5a1dd12a6a8832eb953fa0c2 100644 (file)
@@ -343,7 +343,8 @@ class VolumeManager(manager.SchedulerDependentManager):
 
         except Exception:
             rescheduled = False
-            LOG.exception(_("Error trying to reschedule"))
+            LOG.exception(_("volume %s: Error trying to reschedule create"),
+                          volume_id)
 
         if rescheduled:
             # log the original build error
@@ -360,20 +361,20 @@ class VolumeManager(manager.SchedulerDependentManager):
         retry = filter_properties.get('retry', None)
         if not retry:
             # no retry information, do not reschedule.
-            LOG.debug(_("Retry info not present, will not reschedule"),
-                      volume_id=volume_id)
+            LOG.debug(_("Retry info not present, will not reschedule"))
             return
 
         if not request_spec:
-            LOG.debug(_("No request spec, will not reschedule"),
-                      volume_id=volume_id)
+            LOG.debug(_("No request spec, will not reschedule"))
             return
 
         request_spec['volume_id'] = [volume_id]
 
-        LOG.debug(_("Re-scheduling %(method)s: attempt %(num)d") %
-                  {'method': scheduler_method.func_name,
-                   'num': retry['num_attempts']}, volume_id=volume_id)
+        LOG.debug(_("volume %(volume_id)s: re-scheduling %(method)s "
+                    "attempt %(num)d") %
+                  {'volume_id': volume_id,
+                   'method': scheduler_method.func_name,
+                   'num': retry['num_attempts']})
 
         # reset the volume state:
         now = timeutils.utcnow()