And the rest of my commit message was...

On Wed, 10 Jul 2002 20:54, [EMAIL PROTECTED] wrote:
> donaldp     2002/07/10 03:54:29
>
>   Modified:    src/java/org/apache/avalon/cornerstone/blocks/connection
>                         Connection.java
>   Log:
>   Move debug messages so that they are guarded 

by an if( getLogger().isDebugEnabled() ) and also reworked them so that they 
printed out the dotted notation of network address to avoid a DNS lookup.

Submitted By: "Marcos Sanz/Denic" <[EMAIL PROTECTED]>

>
>   Revision  Changes    Path
>   1.12      +15 -2    
> jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/co
>nnection/Connection.java
>
>   Index: Connection.java
>   ===================================================================
>   RCS file:
> /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone
>/blocks/connection/Connection.java,v retrieving revision 1.11
>   retrieving revision 1.12
>   diff -u -r1.11 -r1.12
>   --- Connection.java 10 Jul 2002 10:52:56 -0000      1.11
>   +++ Connection.java 10 Jul 2002 10:54:28 -0000      1.12
>   @@ -164,9 +164,22 @@
>                m_thread = Thread.currentThread();
>                m_runners.add( this );
>
>   -            getLogger().debug( "Starting connection on " + m_socket );
>   +            if( getLogger().isDebugEnabled() )
>   +            {
>   +                final String message =
>   +                    "Starting connection on " +
>   +                    m_socket.getInetAddress().getHostAddress();
>   +                getLogger().debug( message );
>   +            }
>                m_handler.handleConnection( m_socket );
>   -            getLogger().debug( "Ending connection on " + m_socket );
>   +
>   +            if( getLogger().isDebugEnabled() )
>   +            {
>   +                final String message =
>   +                    "Ending connection on " +
>   +                    m_socket.getInetAddress().getHostAddress();
>   +                getLogger().debug( message );
>   +            }
>                m_handlerFactory.releaseConnectionHandler( m_handler );
>            }
>            catch( final Exception e )

-- 
Cheers,

Peter Donald
-----------------------------------------------------------
 Don't take life too seriously -- 
                          you'll never get out of it alive.
-----------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to