Commit b4a9eb66 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cmdlib: Add logging for tasklets


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 3a012b41
......@@ -214,7 +214,9 @@ class LogicalUnit(object):
"""
if self.tasklets is not None:
for tl in self.tasklets:
for (idx, tl) in enumerate(self.tasklets):
logging.info("Checking prerequisites for tasklet %s/%s",
idx + 1, len(self.tasklets))
tl.CheckPrereq()
else:
raise NotImplementedError
......@@ -228,7 +230,8 @@ class LogicalUnit(object):
"""
if self.tasklets is not None:
for tl in self.tasklets:
for (idx, tl) in enumerate(self.tasklets):
logging.info("Executing tasklet %s/%s", idx + 1, len(self.tasklets))
tl.Exec(feedback_fn)
else:
raise NotImplementedError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment