Skip to content

Commit

Permalink
Merge pull request #32874 from mkouba/scheduler-devui-log-progjob-id
Browse files Browse the repository at this point in the history
Scheduler Dev UI - always log id of programmatically scheduled jobs
  • Loading branch information
mkouba committed Apr 25, 2023
2 parents 585ebb2 + c034ca5 commit 4a9fbe4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,15 @@ private JsonObject newExecutionLog(Trigger trigger, boolean success, String mess
JsonObject log = new JsonObject()
.put("timestamp", LocalDateTime.now().toString())
.put("success", success);
if (userDefinedIdentity) {
log.put("triggerIdentity", trigger.getId());
}
String description = trigger.getMethodDescription();
if (description != null) {
log.put("triggerMethodDescription", description);
if (userDefinedIdentity) {
log.put("triggerIdentity", trigger.getId());
}
} else {
// Always add identity if no method description is available
log.put("triggerIdentity", trigger.getId());
}
if (message != null) {
log.put("message", message);
Expand Down

0 comments on commit 4a9fbe4

Please sign in to comment.