Skip to content

Commit

Permalink
get the right log class from the trait for logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustearth committed Jul 28, 2023
1 parent 537104e commit 5667d4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,6 +16,7 @@ import carnival.graph.Base
/**
* A list of graph methods.
*/
@Slf4j
class GraphMethodList {

///////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -60,6 +62,7 @@ class GraphMethodList {
List<GraphMethodCall> methodCalls = new ArrayList<GraphMethodCall>()

graphMethods.each {
log.trace "call graph method ${it.name}"
GraphMethodCall gmc = it.call(graph, g)
methodCalls.add(gmc)
}
Expand All @@ -82,6 +85,7 @@ class GraphMethodList {
List<GraphMethodCall> methodCalls = new ArrayList<GraphMethodCall>()

graphMethods.each {
log.trace "ensure graph method ${it.name}"
GraphMethodCall gmc = it.ensure(graph, g)
methodCalls.add(gmc)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait GraphMethods extends MethodsHolder {
///////////////////////////////////////////////////////////////////////////

/** Logger */
static Logger log = LoggerFactory.getLogger(this.class)
static Logger log = LoggerFactory.getLogger(this.metaClass.theClass)


///////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)


///////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5667d4b

Please sign in to comment.