Author: giacomo Date: Sun Nov 7 05:34:30 2004 New Revision: 56843 Modified: cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java Log: added debugging messages
Modified: cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java ============================================================================== --- cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java (original) +++ cocoon/trunk/src/java/org/apache/cocoon/components/thread/DefaultThreadPool.java Sun Nov 7 05:34:30 2004 @@ -180,6 +180,25 @@ } /** + * Execute a command + * + * @param command The [EMAIL PROTECTED] Runnable} to execute + * + * @throws InterruptedException In case of interruption + */ + public void execute( Runnable command ) + throws InterruptedException + { + if( getLogger( ).isDebugEnabled( ) ) + { + getLogger( ).debug( "Executing Command: " + command.toString( ) + + ",pool=" + getName( ) ); + } + + super.execute( command ); + } + + /** * @see org.apache.cocoon.components.thread.ThreadPool#shutdownGraceful() */ public void shutdown( )