2004-11-16 jrandom

* Minor logging update
(toss net.i2p.router.JobQueueRunner=WARN in /configlogging.jsp to see wtf is hanging your router)
This commit is contained in:
jrandom
2004-11-16 13:45:40 +00:00
committed by zzz
parent 085da16268
commit 4a4f57d6ac
4 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,7 @@
$Id: history.txt,v 1.70 2004/11/13 04:43:35 jrandom Exp $ $Id: history.txt,v 1.71 2004/11/15 09:35:18 jrandom Exp $
2004-11-16 jrandom
* Minor logging update
2004-11-14 jrandom 2004-11-14 jrandom
* Fix a long standing leak in I2PTunnel (hanging on to i2psocket objects) * Fix a long standing leak in I2PTunnel (hanging on to i2psocket objects)

View File

@ -436,8 +436,8 @@ public class JobQueue {
_readyJobs.add(toAdd.get(i)); _readyJobs.add(toAdd.get(i));
_jobLock.notifyAll(); _jobLock.notifyAll();
} else { } else {
if (timeToWait < 100) if (timeToWait < 10)
timeToWait = 100; timeToWait = 10;
if (timeToWait > 10*1000) if (timeToWait > 10*1000)
timeToWait = 10*1000; timeToWait = 10*1000;
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))

View File

@ -98,6 +98,11 @@ class JobQueueRunner implements Runnable {
_state = 14; _state = 14;
if ( (duration > 1000) && (_log.shouldLog(Log.WARN)) )
_log.warn("Duration of " + duration + " (lag "+ (doStart-origStartAfter)
+ ") on job " + _currentJob);
if (diff > 100) { if (diff > 100) {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
_log.warn("Updating statistics for the job took too long [" + diff + "ms]"); _log.warn("Updating statistics for the job took too long [" + diff + "ms]");

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
* *
*/ */
public class RouterVersion { public class RouterVersion {
public final static String ID = "$Revision: 1.75 $ $Date: 2004/11/13 04:43:35 $"; public final static String ID = "$Revision: 1.76 $ $Date: 2004/11/15 09:35:18 $";
public final static String VERSION = "0.4.1.4"; public final static String VERSION = "0.4.1.4";
public final static long BUILD = 4; public final static long BUILD = 5;
public static void main(String args[]) { public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION); System.out.println("I2P Router version: " + VERSION);
System.out.println("Router ID: " + RouterVersion.ID); System.out.println("Router ID: " + RouterVersion.ID);