davsclaus opened a new pull request, #24145: URL: https://github.com/apache/camel/pull/24145
## Backport of #24144 Cherry-pick of #24144 onto `camel-4.18.x`. **Original PR:** #24144 - CAMEL-23805: HTTP endpoint summary not logged when supervised route controller is enabled **Original author:** @davsclaus **Target branch:** `camel-4.18.x` ### Original description When using `camel.routeController.enabled=true` (supervised route controller), the HTTP endpoint summary log is missing on startup. The endpoints work correctly, but the startup log listing them never appears. **Root cause:** `MainHttpServerUtil` registers an EventNotifier that logs the HTTP summary on `CamelContextStartedEvent`. With the supervised route controller, routes start AFTER that event fires (in `onCamelContextFullyStarted()`), so `platformHttpComponent.getHttpEndpoints()` is empty when the summary runs. **Fix:** - Fire `CamelContextRoutesStartedEvent` from `DefaultSupervisingRouteController` after routes finish starting - Have `MainHttpServerUtil` also listen for `CamelContextRoutesStartedEvent` to re-trigger the summary No double-logging risk — `logSummary()` has a guard that only logs when endpoints have changed. _Claude Code on behalf of Claus Ibsen_ Co-Authored-By: Claude <[email protected]> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
