better logs management

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineWPSExtension@100358 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Gianpaolo Coro 2014-10-02 12:23:35 +00:00
parent 4e21b486b5
commit 3faa817ea5
1 changed files with 4 additions and 4 deletions

View File

@ -71,13 +71,13 @@ public class DynamicWPSTransducerer implements DynamicTransducer {
List<String> wps = new ArrayList<String>();
AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile);
// wps.add("http://wps01.i-marine.d4science.org/wps/WebProcessingService");
AnalysisLogger.getLogger().debug("WPS: searching for wps servers in the scope: " + config.getGcubeScope());
// AnalysisLogger.getLogger().debug("WPS: searching for wps servers in the scope: " + config.getGcubeScope());
wps = org.gcube.dataanalysis.executor.util.IfraRetrieval.retrieveAddresses("WPS", config.getGcubeScope(), "StatisticalManager");
if (wps != null && wps.size() > 0) {
AnalysisLogger.getLogger().debug("WPS: found " + wps.size() + " wps instances");
} else
AnalysisLogger.getLogger().debug("WPS: found NO wps instances");
} else{
// AnalysisLogger.getLogger().debug("WPS: found NO wps instances");
}
return wps;
}