Skip to content

Commit

Permalink
Ansible: add client and callback debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas authored and mrkev-gh committed Jun 28, 2022
1 parent 1cf709d commit 03b718c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public void doPolling(Guid cmdId, List<Guid> childCmdIds) {
// Process the events if the playbook is running:
totalEvents = runnerClient.getTotalEvents(playUuid);

if (msg.equalsIgnoreCase("running") || totalEvents == 0 || msg.equalsIgnoreCase("successful")
log.debug("LastEventId: ", command.getParameters().getLastEventId(), "totalEvents: ", totalEvents, "playbookStatus: ", playbookStatus);
if (msg.equalsIgnoreCase("running") || msg.equalsIgnoreCase("successful")
&& command.getParameters().getLastEventId() < totalEvents) {
command.getParameters().setLastEventId(runnerClient.processEvents(
playUuid, command.getParameters().getLastEventId(), fn, msg, ret.getLogFile()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public int processEvents(String playUuid,
}
}

log.debug("Current node event: ", currentNode.get("event").textValue(), "lastEventId: ", lastEventId);
// want to log only these kind of events:
if (RunnerJsonNode.isEventStart(currentNode) || RunnerJsonNode.isEventOk(currentNode)
|| RunnerJsonNode.playbookStats(currentNode) || RunnerJsonNode.isEventFailed(currentNode)) {
Expand Down

0 comments on commit 03b718c

Please sign in to comment.