diff --git a/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethodList.groovy b/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethodList.groovy index d4978e8..6cdb5e7 100644 --- a/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethodList.groovy +++ b/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethodList.groovy @@ -3,6 +3,7 @@ package carnival.core.graph import java.time.Instant +import groovy.util.logging.Slf4j import org.apache.tinkerpop.gremlin.structure.Graph import org.apache.tinkerpop.gremlin.structure.Vertex import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource @@ -15,6 +16,7 @@ import carnival.graph.Base /** * A list of graph methods. */ +@Slf4j class GraphMethodList { /////////////////////////////////////////////////////////////////////////// @@ -60,6 +62,7 @@ class GraphMethodList { List methodCalls = new ArrayList() graphMethods.each { + log.trace "call graph method ${it.name}" GraphMethodCall gmc = it.call(graph, g) methodCalls.add(gmc) } @@ -82,6 +85,7 @@ class GraphMethodList { List methodCalls = new ArrayList() graphMethods.each { + log.trace "ensure graph method ${it.name}" GraphMethodCall gmc = it.ensure(graph, g) methodCalls.add(gmc) } diff --git a/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethods.groovy b/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethods.groovy index b8b3e11..fdc6314 100644 --- a/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethods.groovy +++ b/app/carnival-core/src/main/groovy/carnival/core/graph/GraphMethods.groovy @@ -24,7 +24,7 @@ trait GraphMethods extends MethodsHolder { /////////////////////////////////////////////////////////////////////////// /** Logger */ - static Logger log = LoggerFactory.getLogger(this.class) + static Logger log = LoggerFactory.getLogger(this.metaClass.theClass) /////////////////////////////////////////////////////////////////////////// diff --git a/app/carnival-vine/src/main/groovy/carnival/vine/Vine.groovy b/app/carnival-vine/src/main/groovy/carnival/vine/Vine.groovy index 6ae49a6..92dd8be 100644 --- a/app/carnival-vine/src/main/groovy/carnival/vine/Vine.groovy +++ b/app/carnival-vine/src/main/groovy/carnival/vine/Vine.groovy @@ -26,7 +26,7 @@ trait Vine extends MethodsHolder { /////////////////////////////////////////////////////////////////////////// /** The log object to use. */ - static Logger log = LoggerFactory.getLogger(this.class) + static Logger log = LoggerFactory.getLogger(this.metaClass.theClass) ///////////////////////////////////////////////////////////////////////////