Enhance logging, way to gate verbosity levels pending.

This commit is contained in:
Michael DeHaan 2012-03-20 21:44:01 -04:00
parent 05e27a419c
commit b5c62ec068
5 changed files with 28 additions and 11 deletions

View file

@ -54,9 +54,9 @@ def smjson(result):
def task_start_msg(name, conditional):
if conditional:
return "NOTIFIED: [%s] **********\n" % name
return "\nNOTIFIED: [%s] **********\n" % name
else:
return "TASK: [%s] *********\n" % name
return "\nTASK: [%s] *********\n" % name
def regular_generic_msg(hostname, result, oneline, caption):
''' output on the result of a module run that is not command '''