Add some debugging to the logdetail callback
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
a87e036224
commit
6d975e3959
1 changed files with 4 additions and 1 deletions
|
@ -263,7 +263,10 @@ class CallbackModule(CallbackBase):
|
|||
info['check'] = self.play_context.check_mode
|
||||
info['diff'] = self.play_context.diff
|
||||
logmech.play_info = info
|
||||
logmech.play_log(json.dumps(info, indent=4))
|
||||
try:
|
||||
logmech.play_log(json.dumps(info, indent=4))
|
||||
except TypeError:
|
||||
print("Failed to conver to JSON:", info)
|
||||
|
||||
|
||||
def v2_playbook_on_stats(self, stats):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue