Skip to content

Commit

Permalink
Add log on failed salt event
Browse files Browse the repository at this point in the history
  • Loading branch information
wweellddeerr committed Jan 8, 2025
1 parent 3974b74 commit 950d3fb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public void execute(EventMessage msg) {
// React according to the function the minion ran
String function = jobReturnEvent.getData().getFun();

// Temporary code, should not be merged.
if (!jobReturnEvent.getData().isSuccess()) {
LOG.error(jobReturnEventMessage.getJobReturnEvent().getData().getResult().toString());
}

List<Map<String, Object>> functionArgs = new LinkedList<>();
if (jobReturnEvent.getData().getFunArgs() instanceof List funArgs &&
!funArgs.isEmpty() && funArgs.get(0) instanceof Map) {
Expand Down

0 comments on commit 950d3fb

Please sign in to comment.