logging
This commit is contained in:
@ -30,7 +30,7 @@ class PersistenceHelper {
|
|||||||
_log.error("Error formatting " + val + " into a long", nfe);
|
_log.error("Error formatting " + val + " into a long", nfe);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_log.error("Key " + prefix + name + " does not exist");
|
_log.warn("Key " + prefix + name + " does not exist");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -153,9 +153,9 @@ public class JobQueue {
|
|||||||
|
|
||||||
_context.statManager().addRateData("jobQueue.readyJobs", numReady, 0);
|
_context.statManager().addRateData("jobQueue.readyJobs", numReady, 0);
|
||||||
if (shouldDrop(job, numReady)) {
|
if (shouldDrop(job, numReady)) {
|
||||||
if (_log.shouldLog(Log.ERROR))
|
if (_log.shouldLog(Log.WARN))
|
||||||
_log.error("Dropping job due to overload! # ready jobs: "
|
_log.warn("Dropping job due to overload! # ready jobs: "
|
||||||
+ numReady + ": job = " + job);
|
+ numReady + ": job = " + job);
|
||||||
job.dropped();
|
job.dropped();
|
||||||
_context.statManager().addRateData("jobQueue.droppedJobs", 1, 1);
|
_context.statManager().addRateData("jobQueue.droppedJobs", 1, 1);
|
||||||
awaken(1);
|
awaken(1);
|
||||||
|
Reference in New Issue
Block a user