diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java index cccf278d6f7b77c59ffed845e0168614ba28804b..b3400f231d076e3c9b5b91f1d7ce981b9d4d4a75 100644 --- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java +++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/server/business/DAOFactoryWithCache.java @@ -31,8 +31,11 @@ import java.util.Map; import net.lemnik.eodsql.DataSet; import org.apache.commons.io.IOUtils; +import org.apache.log4j.Logger; import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel; +import ch.systemsx.cisd.common.logging.LogCategory; +import ch.systemsx.cisd.common.logging.LogFactory; import ch.systemsx.cisd.openbis.plugin.phosphonetx.server.dataaccess.IPhosphoNetXDAOFactory; import ch.systemsx.cisd.openbis.plugin.phosphonetx.server.dataaccess.IProteinQueryDAO; import ch.systemsx.cisd.openbis.plugin.phosphonetx.shared.dto.IdentifiedPeptide; @@ -147,6 +150,9 @@ class DAOFactoryWithCache implements IPhosphoNetXDAOFactory private static final class ResultSetCache<T> { + private static final Logger operationLog = + LogFactory.getLogger(LogCategory.OPERATION, ResultSetCache.class); + private enum CachingType { MEMORY, FILE_SYSTEM } private final String name; @@ -203,7 +209,7 @@ class DAOFactoryWithCache implements IPhosphoNetXDAOFactory { dataSet = new ListBasedDataSet<T>(dataSetLoader.load(experimentPermID)); } - System.out.println(System.currentTimeMillis() - time + "msec for " + name); + operationLog.info("(" + (System.currentTimeMillis() - time) + "ms) " + name); return dataSet; } }