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/06/11 21:13:33 UTC

cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler AbstractComponentHandler.java

leif        2003/06/11 12:13:33

  Modified:    fortress/src/java/org/apache/avalon/fortress/impl/handler
                        AbstractComponentHandler.java
  Log:
  Reduce the priority of component failures from error to debug as the same
  exception is redisplayed later by the container.  This also makes it possible to
  completely hide the exception by overriding the CommandFailureHandler for
  the container.
  
  Revision  Changes    Path
  1.16      +3 -3      avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler/AbstractComponentHandler.java
  
  Index: AbstractComponentHandler.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler/AbstractComponentHandler.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- AbstractComponentHandler.java	14 May 2003 15:54:45 -0000	1.15
  +++ AbstractComponentHandler.java	11 Jun 2003 19:13:32 -0000	1.16
  @@ -279,10 +279,10 @@
           }
           catch ( final Exception e )
           {
  -            if ( m_logger.isErrorEnabled() )
  +            if ( m_logger.isDebugEnabled() )
               {
                   final String message = "Unable to create new instance";
  -                m_logger.error( message, e );
  +                m_logger.debug( message, e );
               }
   
               throw e;
  
  
  

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