diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/devui/SchedulerJsonRPCService.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/devui/SchedulerJsonRPCService.java index cde1a07f4f5a3..331261700c7cc 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/devui/SchedulerJsonRPCService.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/devui/SchedulerJsonRPCService.java @@ -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);