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 2013/01/28 16:40:48 UTC
svn commit: r1439451 -
/camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
Author: davsclaus
Date: Mon Jan 28 15:40:47 2013
New Revision: 1439451
URL: http://svn.apache.org/viewvc?rev=1439451&view=rev
Log:
Polished camel-blueprint with more TRACE logging.
Modified:
camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
Modified: camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java?rev=1439451&r1=1439450&r2=1439451&view=diff
==============================================================================
--- camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java (original)
+++ camel/trunk/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java Mon Jan 28 15:40:47 2013
@@ -73,18 +73,16 @@ public class BlueprintCamelContext exten
}
public void init() throws Exception {
- if (LOG.isTraceEnabled()) {
- LOG.trace("init {}", this);
- }
+ LOG.trace("init {}", this);
+
// add service listener so we can be notified when blueprint container is done
// and we would be ready to start CamelContext
bundleContext.addServiceListener(this);
}
public void destroy() throws Exception {
- if (LOG.isTraceEnabled()) {
- LOG.trace("destroy {}", this);
- }
+ LOG.trace("destroy {}", this);
+
// remove listener and stop this CamelContext
bundleContext.removeServiceListener(this);
stop();
@@ -101,7 +99,7 @@ public class BlueprintCamelContext exten
try {
maybeStart();
} catch (Exception e) {
- LOG.warn("Error occurred during starting " + this, e);
+ LOG.error("Error occurred during starting Camel: " + this + " due " + e.getMessage(), e);
}
}
}
@@ -124,9 +122,8 @@ public class BlueprintCamelContext exten
}
private void maybeStart() throws Exception {
- if (LOG.isTraceEnabled()) {
- LOG.trace("maybeStart: {}", this);
- }
+ LOG.trace("maybeStart: {}", this);
+
if (!isStarted() && !isStarting()) {
final ClassLoader original = Thread.currentThread().getContextClassLoader();
try {