Commit fdea0088 by Brian Coca

now default shows time taken when -vv or above

parent 7a1bce1b
...@@ -70,6 +70,8 @@ class CallbackModule(CallbackBase): ...@@ -70,6 +70,8 @@ class CallbackModule(CallbackBase):
if 'verbose_always' in result._result: if 'verbose_always' in result._result:
indent = 4 indent = 4
del result._result['verbose_always'] del result._result['verbose_always']
if self._display.verbosity >= 2 and 'delta' in result._result:
msg += " [time: %s]" % (result._result['delta'])
msg += " => %s" % json.dumps(result._result, indent=indent, ensure_ascii=False) msg += " => %s" % json.dumps(result._result, indent=indent, ensure_ascii=False)
self._display.display(msg, color=color) self._display.display(msg, color=color)
......
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