From 0e616f00c9950009ef91f85e896ceb72c747d6ec Mon Sep 17 00:00:00 2001 From: Sasha Date: Wed, 24 Apr 2013 17:02:44 +0100 Subject: [PATCH] add Logger to the class --- webservices/compbio/stat/servlet/util/StatCollection.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webservices/compbio/stat/servlet/util/StatCollection.java b/webservices/compbio/stat/servlet/util/StatCollection.java index b53fca7..88d96bb 100644 --- a/webservices/compbio/stat/servlet/util/StatCollection.java +++ b/webservices/compbio/stat/servlet/util/StatCollection.java @@ -25,8 +25,11 @@ import java.util.GregorianCalendar; import java.util.Map; import java.util.TreeMap; +import org.apache.log4j.Logger; + import compbio.stat.collector.StatDB; import compbio.stat.collector.StatProcessor; +import compbio.stat.servlet.DisplayStat; import compbio.ws.client.Services; public class StatCollection { @@ -47,6 +50,8 @@ public class StatCollection { private Map allStat; private Map clusterStat; private Map localStat; + + private final static Logger log = Logger.getLogger(StatCollection.class); public Map getAllStat() { return allStat; @@ -94,6 +99,8 @@ public class StatCollection { t.incomplete = db.getIncompleteCount(fromTime, toTime); t.abandoned = db.getAbandonedCount(fromTime, toTime); t.cancelled = db.getCancelledCount(fromTime, toTime); + log.trace("Job counts: total = " + t.total + ", incomplete = " + + t.incomplete + ", abandoned = " + t.abandoned + ", cancelled = " + t.cancelled ); return t; } -- 1.7.10.2