From: Mike Perez Date: Sat, 9 Mar 2013 08:40:39 +0000 (-0800) Subject: Remove/update unused log arguements in manager X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3a3726c6079b2de4cbe605f4584ffe87dcc169b0;p=openstack-build%2Fcinder-build.git Remove/update unused log arguements in manager Fixes: bug #1130867 Change-Id: I6f9a9c33530e92fa9ce22bd44ef7c40f7e355b04 --- diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index 3efc9a60c..c317d4e65 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -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()