Fixed log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/information-system-model@130243 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
34d394da08
commit
6f0f9abaf6
|
@ -23,7 +23,7 @@ public class Utility {
|
|||
private static Logger logger = LoggerFactory.getLogger(Utility.class);
|
||||
|
||||
public static String getUUIDFromJSONString(String json) throws JsonProcessingException, IOException {
|
||||
logger.trace("Tryning to get UUID from {} of {} ", Header.class.getSimpleName(), json);
|
||||
logger.trace("Trying to get UUID from {} of {} ", Header.class.getSimpleName(), json);
|
||||
JsonNode jsonNode = getJSONNode(json);
|
||||
JsonNode header = jsonNode.get(Entity.HEADER_PROPERTY);
|
||||
String uuid = header.get(Header.UUID_PROPERTY).asText();
|
||||
|
@ -35,7 +35,7 @@ public class Utility {
|
|||
if(json==null || json.compareTo("")==0){
|
||||
return null;
|
||||
}
|
||||
logger.trace("Tryning to get Jsonnode from {}");
|
||||
logger.trace("Trying to get Jsonnode from {}", json);
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
JsonNode jsonNode = mapper.readTree(json);
|
||||
return jsonNode;
|
||||
|
|
Loading…
Reference in New Issue