From 5ba9d3ce48e4ddfd353a16104988f4f092e27d45 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Fri, 10 Oct 2014 16:01:11 +0000 Subject: [PATCH] clean code git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/content-management/storage-manager-trigger@100617 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../storageserver/parse/utils/ValidationUtils.java | 6 +++--- .../storageserver/startup/Configuration.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/gcube/contentmanager/storageserver/parse/utils/ValidationUtils.java b/src/main/java/org/gcube/contentmanager/storageserver/parse/utils/ValidationUtils.java index cf04166..3a841f9 100644 --- a/src/main/java/org/gcube/contentmanager/storageserver/parse/utils/ValidationUtils.java +++ b/src/main/java/org/gcube/contentmanager/storageserver/parse/utils/ValidationUtils.java @@ -19,7 +19,7 @@ public class ValidationUtils { scope=scopeBean.enclosingScope().toString(); Set scopeSet=new ServiceMapScannerMediator().getScopeKeySet(); for(String scopeItem : scopeSet){ - System.out.println("scope scanned: "+scopeItem); + logger.debug("scope scanned: "+scopeItem); if(scope.equals(scopeItem)) return true; } @@ -39,9 +39,9 @@ public class ValidationUtils { Set scopeSet=new ServiceMapScannerMediator().getScopeKeySet(); for(String scopeItem : scopeSet){ //retrieve all Vo scopes - System.out.println("scope scanned: "+scopeItem); + logger.debug("scope scanned: "+scopeItem); if(scopeItem.contains(scope) && (new ScopeBean(scopeItem).is(Type.VO))){ - logger.info("found vo scope: "+scopeItem); + logger.debug("found vo scope: "+scopeItem); vos.add(scopeItem); } } diff --git a/src/main/java/org/gcube/contentmanager/storageserver/startup/Configuration.java b/src/main/java/org/gcube/contentmanager/storageserver/startup/Configuration.java index 76fda1f..4fd1a36 100644 --- a/src/main/java/org/gcube/contentmanager/storageserver/startup/Configuration.java +++ b/src/main/java/org/gcube/contentmanager/storageserver/startup/Configuration.java @@ -179,13 +179,13 @@ public class Configuration { ArrayList hosts= new ArrayList(); for(String currentScope:scopes){ String host=getHosts("DataTransformation", "DataTransformationService", currentScope); - System.out.println("host found: "+host+ " in scope: "+currentScope); + logger.debug("host found: "+host+ " in scope: "+currentScope); if(host!=null) hosts.add(host); } for(String host : hosts){ - System.out.println("DTS host: "+host); + logger.debug("DTS host: "+host); } return hosts; } @@ -212,9 +212,9 @@ public class Configuration { if(host.contains("//")){ int begin=host.indexOf("//"); host=host.substring(begin+2); - System.out.println("phase#1 "+ host ); + logger.debug("phase#1 "+ host ); String [] uris=host.split(":"); - System.out.println("phase#2 "+uris[0]); + logger.debug("phase#2 "+uris[0]); host=uris[0]; } }