Fixing log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@133668 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0bc16375b8
commit
dc2e16777e
|
@ -159,7 +159,7 @@ public class ContextManagementImpl implements ContextManagement {
|
||||||
orientGraph.commit();
|
orientGraph.commit();
|
||||||
|
|
||||||
Vertex readContext = getContext(orientGraph, uuid);
|
Vertex readContext = getContext(orientGraph, uuid);
|
||||||
logger.info("Context {} created",
|
logger.info("Context created {}",
|
||||||
Utility.toJsonString((OrientVertex) readContext, true));
|
Utility.toJsonString((OrientVertex) readContext, true));
|
||||||
return Utility.toJsonString((OrientVertex) readContext, false);
|
return Utility.toJsonString((OrientVertex) readContext, false);
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.gcube.informationsystem.model.embedded.Embedded;
|
||||||
import org.gcube.informationsystem.model.entity.Entity;
|
import org.gcube.informationsystem.model.entity.Entity;
|
||||||
import org.gcube.informationsystem.model.entity.Facet;
|
import org.gcube.informationsystem.model.entity.Facet;
|
||||||
import org.gcube.informationsystem.model.entity.Resource;
|
import org.gcube.informationsystem.model.entity.Resource;
|
||||||
|
@ -231,10 +232,10 @@ public class SchemaManagementImpl implements SchemaManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// orientGraphNoTx.commit();
|
|
||||||
|
|
||||||
OClass oClass = getTypeSchema(typeDefinition.getName(), null);
|
OClass oClass = getTypeSchema(typeDefinition.getName(), null);
|
||||||
return serializeOClass(oClass);
|
String ret = serializeOClass(oClass);
|
||||||
|
logger.info("{} type registered successfully: {}", baseType, jsonSchema);
|
||||||
|
return ret;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new SchemaException(e);
|
throw new SchemaException(e);
|
||||||
|
@ -254,7 +255,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 {} type : {}", baseType, jsonSchema);
|
||||||
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
TypeDefinition typeDefinition = mapper.readValue(jsonSchema,
|
TypeDefinition typeDefinition = mapper.readValue(jsonSchema,
|
||||||
|
@ -313,10 +314,11 @@ public class SchemaManagementImpl implements SchemaManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// orientGraphNoTx.commit();
|
|
||||||
|
|
||||||
OClass oClass = getTypeSchema(typeDefinition.getName(), null);
|
OClass oClass = getTypeSchema(typeDefinition.getName(), null);
|
||||||
return serializeOClass(oClass);
|
String ret = serializeOClass(oClass);
|
||||||
|
logger.info("{} type registered successfully: {}", baseType, jsonSchema);
|
||||||
|
return ret;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new SchemaException(e);
|
throw new SchemaException(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -335,7 +337,7 @@ public class SchemaManagementImpl implements SchemaManagement {
|
||||||
|
|
||||||
OrientGraphNoTx orientGraphNoTx = null;
|
OrientGraphNoTx orientGraphNoTx = null;
|
||||||
try {
|
try {
|
||||||
logger.info("Trying to register {}", jsonSchema);
|
logger.info("Trying to register {} type : {}", Embedded.NAME, jsonSchema);
|
||||||
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
TypeDefinition typeDefinition = mapper.readValue(jsonSchema,
|
TypeDefinition typeDefinition = mapper.readValue(jsonSchema,
|
||||||
|
@ -393,10 +395,11 @@ public class SchemaManagementImpl implements SchemaManagement {
|
||||||
ovp.setLinkedClass(linkedClass);
|
ovp.setLinkedClass(linkedClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
oDatabaseDocumentTx.commit();
|
||||||
|
|
||||||
// orientGraphNoTx.commit();
|
String ret = serializeOClass(oClass);
|
||||||
|
logger.info("{} type registered successfully: {}", Embedded.NAME, jsonSchema);
|
||||||
return serializeOClass(oClass);
|
return ret;
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new SchemaException(e);
|
throw new SchemaException(e);
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
|
|
||||||
<logger name="org.gcube" level="TRACE" />
|
<logger name="org.gcube" level="TRACE" />
|
||||||
|
<logger name="org.gcube.informationsystem" level="INFO" />
|
||||||
<logger name="org.gcube.informationsystem.impl.utils.discovery" level="ERROR" />
|
<logger name="org.gcube.informationsystem.impl.utils.discovery" level="ERROR" />
|
||||||
|
|
||||||
<root level="WARN">
|
<root level="WARN">
|
||||||
|
|
Loading…
Reference in New Issue