diff --git a/engine/graph/autoedge/autoedge.go b/engine/graph/autoedge/autoedge.go index 9074419a..21c85740 100644 --- a/engine/graph/autoedge/autoedge.go +++ b/engine/graph/autoedge/autoedge.go @@ -63,7 +63,9 @@ func AutoEdge(graph *pgraph.Graph, debug bool, logf func(format string, v ...int continue } if autoEdgeObj == nil { - logf("no auto edges were found for: %s", res) + if debug { + logf("no auto edges were found for: %s", res) + } continue // next vertex } autoEdgeObjMap[res] = autoEdgeObj // save for next loop