You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/07 06:07:46 UTC
[camel] branch camel-3.20.x updated: camel-jbang - Fix log http summary on reload to only output if something was changed.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.20.x by this push:
new 99ef9ca0df1 camel-jbang - Fix log http summary on reload to only output if something was changed.
99ef9ca0df1 is described below
commit 99ef9ca0df16ce4d8fe087d27b6c7d219dc17a9d
Author: Claus Ibsen <cl...@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 a4fa19e0c9a..ccc9584a69f 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