moved log at debug

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portal/ws-synchronized-module-library@174266 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-11-20 16:44:08 +00:00
parent 8b3cdb3097
commit abbbba9f32
1 changed files with 1 additions and 30 deletions

View File

@ -380,7 +380,7 @@ public class WorkspaceThreddsSynchronize implements WorkspaceThreddsSynchronized
Map<String, Object> map = storageHubInstance.open(itemId).asItem().get().getPropertyMap().getValues();
wsSyncStatus = (String) map.get(WS_SYNCH_SYNCH_STATUS);
logger.info("Item id: "+itemId+" read from Shub has current: "+WS_SYNCH_SYNCH_STATUS +" value at: "+wsSyncStatus);
logger.debug("Item id: "+itemId+" read from Shub has current: "+WS_SYNCH_SYNCH_STATUS +" value at: "+wsSyncStatus);
if(wsSyncStatus==null)
return null;
@ -389,35 +389,6 @@ public class WorkspaceThreddsSynchronize implements WorkspaceThreddsSynchronized
logger.warn(wsSyncStatus + " is not value of "+Sync_Status.values()+", returning null");
return null;
}
/*WorkspaceItem wsItem = null;
try {
logger.debug("Scope provider instancied at: "+scope);
Workspace workspace = HomeLibrary.getUserWorkspace(username);
wsItem = workspace.getItem(itemId);
}catch (Exception e) {
logger.error("Error HL side: "+itemId, e);
throw new Exception("Sorry, an error occurred getting synched status for item id: "+itemId, e);
}
Properties properties = wsItem.getProperties();
if(properties==null || properties.getProperties()==null || properties.getProperties().size()==0) {
throw new ItemNotSynched("No properties to read");
}
String wsSyncStatus = properties.getProperties().get(WS_SYNCH_SYNCH_STATUS);
logger.info("Item id: "+itemId+" has current: "+WS_SYNCH_SYNCH_STATUS +" value at: "+wsSyncStatus);
try {
return Sync_Status.valueOf(wsSyncStatus);
}catch (Exception e) {
logger.warn(wsSyncStatus + " is not value of "+Sync_Status.values()+", returning null");
return null;
}*/
}