Author: toad
Date: 2008-03-17 13:40:34 +0000 (Mon, 17 Mar 2008)
New Revision: 18558

Modified:
   trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
Logging

Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java       2008-03-17 
03:09:22 UTC (rev 18557)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java       2008-03-17 
13:40:34 UTC (rev 18558)
@@ -64,6 +64,7 @@
                                jobCount++;
                                if(!waitingThreads[prio-1].isEmpty()) {
                                        t = (MyThread) 
waitingThreads[prio-1].remove(waitingThreads[prio-1].size()-1);
+                                       if(logMINOR) Logger.minor(this, 
"Reusing thread "+t);
                                } else {
                                        // Must create new thread
                                        if((!fromTicker) && 
NativeThread.usingNativeCode() && prio > Thread.currentThread().getPriority()) {
@@ -99,6 +100,9 @@
                                        if(logMINOR)
                                                Logger.minor(this, "Jobs: 
"+jobMisses+" misses of "+jobCount+" starting urgently "+jobName);
                                }
+                       } else {
+                               if(logMINOR)
+                                       Logger.minor(this, "Not starting: Jobs: 
"+jobMisses+" misses of "+jobCount+" starting urgently "+jobName);
                        }
                        return;
                }


Reply via email to