This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 9e4b7c8e9e13 CAMEL-23805: HTTP endpoint summary not logged when
supervised route controller is enabled (#24144)
9e4b7c8e9e13 is described below
commit 9e4b7c8e9e13ae66ef7beb6fe0fb24e88aee145e
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 19 20:29:32 2026 +0200
CAMEL-23805: HTTP endpoint summary not logged when supervised route
controller is enabled (#24144)
Signed-off-by: Claus Ibsen <[email protected]>
Co-authored-by: Claude <[email protected]>
---
.../apache/camel/component/platform/http/main/MainHttpServerUtil.java | 1 +
.../apache/camel/impl/engine/DefaultSupervisingRouteController.java | 3 +++
2 files changed, 4 insertions(+)
diff --git
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java
index fae0037ff1cc..782e7e5c1db6 100644
---
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java
+++
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServerUtil.java
@@ -95,6 +95,7 @@ public class MainHttpServerUtil {
@Override
public boolean isEnabled(CamelEvent event) {
return event instanceof
CamelEvent.CamelContextStartedEvent
+ || event instanceof
CamelEvent.CamelContextRoutesStartedEvent
|| event instanceof
CamelEvent.RouteReloadedEvent;
}
diff --git
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultSupervisingRouteController.java
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultSupervisingRouteController.java
index af800dc3e0f9..3167772b362b 100644
---
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultSupervisingRouteController.java
+++
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultSupervisingRouteController.java
@@ -564,6 +564,9 @@ public class DefaultSupervisingRouteController extends
DefaultRouteController im
// log after first round of attempts (some routes may be scheduled
for restart)
logRouteStartupSummary();
}
+
+ // signal that routes have been started so other services can react
+ EventHelper.notifyCamelContextRoutesStarted(getCamelContext());
}
private void logRouteStartupSummary() {