Fixing log

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@133669 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-10-27 16:35:43 +00:00
parent dc2e16777e
commit 3db2e67582
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public class SchemaManagementImpl implements SchemaManagement {
OrientGraphNoTx orientGraphNoTx = null; OrientGraphNoTx orientGraphNoTx = null;
try { try {
logger.info("Trying to register {} {}", baseType, jsonSchema); logger.info("Trying to register {} {}", baseType.getSimpleName(), jsonSchema);
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
TypeDefinition typeDefinition = mapper.readValue(jsonSchema, TypeDefinition typeDefinition = mapper.readValue(jsonSchema,
@ -234,7 +234,7 @@ public class SchemaManagementImpl implements SchemaManagement {
OClass oClass = getTypeSchema(typeDefinition.getName(), null); OClass oClass = getTypeSchema(typeDefinition.getName(), null);
String ret = serializeOClass(oClass); String ret = serializeOClass(oClass);
logger.info("{} type registered successfully: {}", baseType, jsonSchema); logger.info("{} type registered successfully: {}", baseType.getSimpleName(), jsonSchema);
return ret; return ret;
} catch (Exception e) { } catch (Exception e) {