jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mets...@apache.org
Subject svn commit: r762075 - /incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java
Date Sun, 05 Apr 2009 12:22:32 GMT
Author: metskem
Date: Sun Apr  5 12:22:32 2009
New Revision: 762075

URL: http://svn.apache.org/viewvc?rev=762075&view=rev
Log:
minor corrections to the log statements in Watchdog

Modified:
    incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java

Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java?rev=762075&r1=762074&r2=762075&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/util/WatchDog.java Sun Apr  5 12:22:32
2009
@@ -328,7 +328,14 @@
             Thread t = (Thread) threadIterator.next();
             if( t.getName().equals( m_watchable.getName() ) || log.isInfoEnabled() )
             {
-                log.error( "dumping stacktrace for too long running thread : " + t );
+                if( t.getName().equals( m_watchable.getName() ) )
+                {
+                    log.error( "dumping stacktrace for too long running thread : " + t );
+                }
+                else
+                {
+                    log.error( "dumping stacktrace for other running thread : " + t );
+                }
                 StackTraceElement[] ste = stackTraces.get( t );
                 StringBuilder stacktrace = new StringBuilder( "stacktrace follows" );
                 for( int i = 0; i < ste.length; i++ )



Mime
View raw message