Author: davsclaus
Date: Sat Apr 6 07:45:22 2013
New Revision: 1465206
URL: http://svn.apache.org/r1465206
Log:
CAMEL-6247: Dont log illegal state exception on stopping blueprint as it may
happen at WARN level.
Modified:
camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
Modified:
camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java?rev=1465206&r1=1465205&r2=1465206&view=diff
==============================================================================
---
camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
(original)
+++
camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
Sat Apr 6 07:45:22 2013
@@ -147,7 +147,13 @@ public final class CamelBlueprintHelper
}
}
} catch (Exception e) {
- LOG.warn("Error during disposing BundleContext. This exception
will be ignored.", e);
+ IllegalStateException ise =
ObjectHelper.getException(IllegalStateException.class, e);
+ if (ise != null) {
+ // we dont care about illegal state exception as that may
happen from OSGi
+ LOG.debug("Error during disposing BundleContext. This
exception will be ignored.", e);
+ } else {
+ LOG.warn("Error during disposing BundleContext. This exception
will be ignored.", e);
+ }
} finally {
String tempDir =
System.clearProperty("org.osgi.framework.storage");
if (tempDir != null) {