Commit 0c7c175c authored by Mingyang Zhu's avatar Mingyang Zhu
Browse files

Merge branch 'cosmos-exception-log' into 'master'

add log for exception message coming from cosmos

See merge request !60
parents ccf80079 855ed336
Pipeline #35980 passed with stages
in 13 minutes and 22 seconds
......@@ -16,6 +16,7 @@ import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSo
import org.apache.tinkerpop.gremlin.process.traversal.translator.GroovyTranslator;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import org.opengroup.osdu.core.common.model.http.AppException;
......@@ -57,6 +58,7 @@ public class ClusterGremlinConnector implements GremlinConnector {
private final VertexUtilService vertexUtilService;
private Client client;
private GraphTraversalSource graphTraversalSource;
private final JaxRsDpsLog log;
protected void init() {
......@@ -163,6 +165,7 @@ public class ClusterGremlinConnector implements GremlinConnector {
resultList = completableFutureResults.get();
} catch (ExecutionException e) {
log.error(String.format("getting error from cosmos db: %s", e.getMessage()), e);
if (isResourceNotFoundException(e)) {
throw new AppException(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment