Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add explanatory comments to previous commit.

git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1296994 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 3ec4774d156bd46b4a590d227707b72313e8b24a 1 parent fe0a29e
David Bosschaert bosschaert authored
4 jndi/jndi-core/src/main/java/org/apache/aries/jndi/startup/Activator.java
@@ -78,6 +78,8 @@ public void start(BundleContext context) {
78 78 } catch (NamingException e) {
79 79 LOGGER.info(Utils.MESSAGES.getMessage("unable.to.set.static.ICFB"), e);
80 80 } catch (IllegalStateException e) {
  81 + // Log the problem at info level, but only log the exception at debug level, as in many cases this is not a real issue and people
  82 + // don't want to see stack traces at info level when everything it working as expected.
81 83 LOGGER.info(Utils.MESSAGES.getMessage("unable.to.set.static.ICFB.already.exists", getClassName(InitialContextFactoryBuilder.class)));
82 84 LOGGER.debug(Utils.MESSAGES.getMessage("unable.to.set.static.ICFB.already.exists", getClassName(InitialContextFactoryBuilder.class)), e);
83 85 }
@@ -89,6 +91,8 @@ public void start(BundleContext context) {
89 91 } catch (NamingException e) {
90 92 LOGGER.info(Utils.MESSAGES.getMessage("unable.to.set.static.OFB"), e);
91 93 } catch (IllegalStateException e) {
  94 + // Log the problem at info level, but only log the exception at debug level, as in many cases this is not a real issue and people
  95 + // don't want to see stack traces at info level when everything it working as expected.
92 96 LOGGER.info(Utils.MESSAGES.getMessage("unable.to.set.static.OFB.already.exists", getClassName(InitialContextFactoryBuilder.class)));
93 97 LOGGER.debug(Utils.MESSAGES.getMessage("unable.to.set.static.OFB.already.exists", getClassName(InitialContextFactoryBuilder.class)), e);
94 98 }

0 comments on commit 3ec4774

Please sign in to comment.
Something went wrong with that request. Please try again.