This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.21.x by this push:
new 39189011146 camel-jbang - Fix log http summary on reload to only
output if something was changed.
39189011146 is described below
commit 39189011146c25445a7e13a6476c2ad48e910e61
Author: Claus Ibsen <[email protected]>
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