You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2003/03/13 07:04:57 UTC

cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/util ContextManager.java

leif        2003/03/12 22:04:57

  Modified:    fortress/src/java/org/apache/avalon/fortress/util
                        ContextManager.java
  Log:
  Rework the way normal debug messages are displayed so that the user is not hit
  with stack traces in the debug output even when Fortress is starting normally.
  
  Revision  Changes    Path
  1.8       +9 -6      avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/util/ContextManager.java
  
  Index: ContextManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/util/ContextManager.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ContextManager.java	25 Feb 2003 16:28:28 -0000	1.7
  +++ ContextManager.java	13 Mar 2003 06:04:56 -0000	1.8
  @@ -296,7 +296,8 @@
           }
           catch( ContextException ce )
           {
  -            getLogger().debug("Could not copy the parameters for the Context, ignoring the exception.", ce);
  +            getLogger().debug( "Could not copy Context parameters.  This may be Ok depending on "
  +                + "other configured context values." );
           }
       }
   
  @@ -543,8 +544,8 @@
           }
           catch( ContextException ce )
           {
  -            getLogger().debug( "Could not copy context entry: " + RoleManager.ROLE +
  -                 ".  Ignoring exception.", ce );
  +            getLogger().debug( "Could not copy context entry: " + RoleManager.ROLE
  +                + ".  This may be Ok depending on other configured context values." );
           }
   
           Configuration roleConfig =
  @@ -639,7 +640,8 @@
           }
           catch( ContextException ce )
           {
  -            getLogger().debug("There is no Configuration already loaded", ce);
  +            getLogger().debug( "A preloaded Configuration was not found for key: " + configKey
  +                + "  This may be Ok depending on other configured context values." );
           }
   
           String configUri = null;
  @@ -649,7 +651,8 @@
           }
           catch( ContextException ce )
           {
  -            getLogger().debug("There isn't any configuration URI already specified either.", ce);
  +            getLogger().debug( "A configuration URI was not specified either: " + uriKey
  +                + "  One or the other is required." );
               return null;
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org