Change in vdsm[master]: taskManager: improve task queuing error logging

Federico Simoncelli fsimonce at redhat.com
Wed May 21 15:07:25 UTC 2014


Federico Simoncelli has uploaded a new change for review.

Change subject: taskManager: improve task queuing error logging
......................................................................

taskManager: improve task queuing error logging

This patch improves the task queuing error by adding the id of the task.

Change-Id: Id3cb39091c59e92c8852e863ebb2cdc61594e5aa
Signed-off-by: Federico Simoncelli <fsimonce at redhat.com>
---
M vdsm/storage/taskManager.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/79/27979/1

diff --git a/vdsm/storage/taskManager.py b/vdsm/storage/taskManager.py
index 3771873..7cdd4d3 100644
--- a/vdsm/storage/taskManager.py
+++ b/vdsm/storage/taskManager.py
@@ -54,9 +54,10 @@
                 del self._tasks[task.id]
                 raise se.AddTaskError()
             self.log.debug("task queued: %s", task.id)
-        except Exception as ex:
-            self.log.error("Could not queue task, encountered: %s", str(ex))
+        except Exception:
+            self.log.debug('could not queue task %s', task.id)
             raise
+
         return task.id
 
     def scheduleJob(self, type, store, task, jobName, func, *args):


-- 
To view, visit http://gerrit.ovirt.org/27979
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3cb39091c59e92c8852e863ebb2cdc61594e5aa
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>


More information about the vdsm-patches mailing list