This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push: new fd2e4d45fe5 camel-jbang - Fix log http summary on reload to only output if something was changed. fd2e4d45fe5 is described below commit fd2e4d45fe564172690a147bdc581fd9ed1ad1a8 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jul 7 08:06:43 2023 +0200 camel-jbang - Fix log http summary on reload to only output if something was changed. --- .../src/main/java/org/apache/camel/main/http/VertxHttpServer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/http/VertxHttpServer.java b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/http/VertxHttpServer.java index 87033fa3859..6bff966ceb0 100644 --- a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/http/VertxHttpServer.java +++ b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/http/VertxHttpServer.java @@ -120,12 +120,13 @@ public final class VertxHttpServer { // after camel is started then add event notifier camelContext.addStartupListener(new StartupListener() { + + private volatile Set<HttpEndpointModel> last; + @Override public void onCamelContextStarted(CamelContext context, boolean alreadyStarted) throws Exception { camelContext.getManagementStrategy().addEventNotifier(new SimpleEventNotifierSupport() { - private Set<HttpEndpointModel> last; - @Override public boolean isEnabled(CamelEvent event) { return event instanceof CamelEvent.CamelContextStartedEvent