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 7437379034b camel-jbang - Fix log http summary on reload to only output if something was changed. 7437379034b is described below commit 7437379034bd5a9d5028d1b6dcf773ed6cdd6b75 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 82aa1da5a16..87af11329e9 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