From 4489e5ce6e743a4d9714670746f2afc92da14c5d Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 18 Sep 2024 21:38:29 -0400 Subject: [PATCH] engine: graph: autoedge: Quiet down the useless logs These are so useful, let's silence them. --- engine/graph/autoedge/autoedge.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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