Added logs to better understanding what happen in case of failure
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@134334 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6dff36cb0c
commit
cfa9c0ed32
|
@ -62,7 +62,7 @@ public class EntityManager {
|
|||
public String createFacet(@PathParam(TYPE_PATH_PARAM) String type,
|
||||
@QueryParam(EntityPath.DEFINITION_PARAM) String definition)
|
||||
throws EntityException, ResourceRegistryException {
|
||||
logger.trace("requested facet creation for type {} defined by {} ",
|
||||
logger.info("requested facet creation for type {} defined by {} ",
|
||||
type, definition);
|
||||
return entityManager.createFacet(type, definition);
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ public class EntityManager {
|
|||
public String updateFacet(@PathParam(ID_PATH_PARAM) String uuid,
|
||||
@QueryParam(EntityPath.DEFINITION_PARAM) String definition)
|
||||
throws FacetNotFoundException, ResourceRegistryException {
|
||||
logger.trace("requested facet update for id {} with {}", uuid,
|
||||
logger.info("requested facet update for id {} with {}", uuid,
|
||||
definition);
|
||||
return entityManager.updateFacet(UUID.fromString(uuid), definition);
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ public class EntityManager {
|
|||
@Path(EntityPath.FACET_PATH_PART + "/{" + ID_PATH_PARAM + "}")
|
||||
public boolean deleteFacet(@PathParam(ID_PATH_PARAM) String uuid)
|
||||
throws FacetNotFoundException, ResourceRegistryException {
|
||||
logger.trace("Requested to delete Facet with id {}", uuid);
|
||||
logger.info("Requested to delete Facet with id {}", uuid);
|
||||
return entityManager.deleteFacet(UUID.fromString(uuid));
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ public class EntityManager {
|
|||
public String createResource(@PathParam(TYPE_PATH_PARAM) String type,
|
||||
@QueryParam(EntityPath.DEFINITION_PARAM) String definition)
|
||||
throws FacetNotFoundException, ResourceRegistryException {
|
||||
logger.trace("requested resource creation for type {} with json {}",
|
||||
logger.info("requested resource creation for type {} with json {}",
|
||||
type, definition);
|
||||
return entityManager.createResource(type, definition);
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ public class EntityManager {
|
|||
@QueryParam(EntityPath.PROPERTIES_PARAM) String properties)
|
||||
throws FacetNotFoundException, ResourceNotFoundException,
|
||||
ResourceRegistryException {
|
||||
logger.trace(
|
||||
logger.info(
|
||||
"requested to attach resource {} to facet {} ({} Type {}) with properties {}",
|
||||
resourceUUID, facetUUID, ConsistsOf.class.getSimpleName(),
|
||||
type, properties);
|
||||
|
@ -195,7 +195,7 @@ public class EntityManager {
|
|||
@Path(EntityPath.CONSISTS_OF_PATH_PART + "/{" + ID_PATH_PARAM + "}")
|
||||
public boolean detachFacet(@PathParam(ID_PATH_PARAM) String consistOfUUID)
|
||||
throws ResourceRegistryException {
|
||||
logger.trace("requested to detach {}", consistOfUUID);
|
||||
logger.info("requested to detach {}", consistOfUUID);
|
||||
return entityManager.detachFacet(UUID.fromString(consistOfUUID));
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ public class EntityManager {
|
|||
@QueryParam(EntityPath.TYPE_PARAM) String type,
|
||||
@QueryParam(EntityPath.PROPERTIES_PARAM) String properties)
|
||||
throws ResourceNotFoundException, ResourceRegistryException {
|
||||
logger.trace(
|
||||
logger.info(
|
||||
"requested to attach source {} {} and target {} {} ({} Type {}) with properties {}",
|
||||
Resource.NAME, sourceResourceUUID, Resource.NAME,
|
||||
targetResourceUUID, IsRelatedTo.class.getSimpleName(), type,
|
||||
|
@ -248,7 +248,7 @@ public class EntityManager {
|
|||
@Path(EntityPath.IS_RELATED_TO_PATH_PART + "/{" + ID_PATH_PARAM + "}")
|
||||
public boolean detachResource(@PathParam(ID_PATH_PARAM) String relatedToUUID)
|
||||
throws ResourceRegistryException {
|
||||
logger.trace("requested to detach {}", relatedToUUID);
|
||||
logger.info("requested to detach {}", relatedToUUID);
|
||||
return entityManager.detachResource(UUID.fromString(relatedToUUID));
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ public class EntityManager {
|
|||
public boolean addResourceToContext(@PathParam(ID_PATH_PARAM) String uuid)
|
||||
throws ResourceNotFoundException, ContextNotFoundException,
|
||||
ResourceRegistryException {
|
||||
logger.trace("requested to add {} with UUID {} to current context {}",
|
||||
logger.info("requested to add {} with UUID {} to current context {}",
|
||||
Resource.NAME, uuid, ContextUtility.getCurrentContext());
|
||||
return entityManager.addResourceToContext(UUID.fromString(uuid));
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ public class EntityManager {
|
|||
public boolean addFacetToContext(@PathParam(ID_PATH_PARAM) String uuid)
|
||||
throws FacetNotFoundException, ContextNotFoundException,
|
||||
ResourceRegistryException {
|
||||
logger.trace("requested to add {} with UUID {} to current context {}",
|
||||
logger.info("requested to add {} with UUID {} to current context {}",
|
||||
Facet.NAME, uuid, ContextUtility.getCurrentContext());
|
||||
return entityManager.addFacetToContext(UUID.fromString(uuid));
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue