Skip to content

Commit

Permalink
Ansible: fix debug log for the events
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas committed Jun 29, 2022
1 parent 3f13de6 commit 8515ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void doPolling(Guid cmdId, List<Guid> childCmdIds) {
// Process the events if the playbook is running:
totalEvents = runnerClient.getTotalEvents(playUuid);

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

log.debug("Current node event: ", currentNode.get("event").textValue(), "lastEventId: ", lastEventId);
log.debug("Current node event: {} lastEventId: {} ", currentNode.get("event").textValue(), 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 8515ed9

Please sign in to comment.