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 2021/01/24 15:09:37 UTC

[camel-karaf] branch master updated: CAMEL-16072: Nicer log summary of startup and shutdown of Camel

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new fb92ea4  CAMEL-16072: Nicer log summary of startup and shutdown of Camel
fb92ea4 is described below

commit fb92ea404fbef25847f6823b69db26108035034c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Jan 24 16:03:56 2021 +0100

    CAMEL-16072: Nicer log summary of startup and shutdown of Camel
---
 .../org/apache/camel/blueprint/CamelContextFactoryBean.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
index b63dcaa..ea220ab 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/CamelContextFactoryBean.java
@@ -35,6 +35,7 @@ import org.apache.camel.LoggingLevel;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.ShutdownRoute;
 import org.apache.camel.ShutdownRunningTask;
+import org.apache.camel.StartupSummaryLevel;
 import org.apache.camel.TypeConverterExists;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.properties.PropertiesComponent;
@@ -97,6 +98,9 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Blu
     @XmlAttribute(name = "depends-on")
     private String dependsOn;
     @XmlAttribute
+    @Metadata(defaultValue = "Default")
+    private StartupSummaryLevel startupSummaryLevel;
+    @XmlAttribute
     private String trace;
     @XmlAttribute
     private String backlogTrace;
@@ -645,6 +649,15 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Blu
     }
 
     @Override
+    public StartupSummaryLevel getStartupSummaryLevel() {
+        return startupSummaryLevel;
+    }
+
+    public void setStartupSummaryLevel(StartupSummaryLevel startupSummaryLevel) {
+        this.startupSummaryLevel = startupSummaryLevel;
+    }
+
+    @Override
     public String getTrace() {
         return trace;
     }