From ab995aa93512207accae0bad38433d305424b906 Mon Sep 17 00:00:00 2001 From: Moshe Immerman Date: Thu, 21 Dec 2023 18:17:56 +0200 Subject: [PATCH] chore: reduce logging verbosity --- pkg/topology/run.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/topology/run.go b/pkg/topology/run.go index 14a266c49..9dbc0a69d 100644 --- a/pkg/topology/run.go +++ b/pkg/topology/run.go @@ -290,8 +290,10 @@ func lookupProperty(ctx *ComponentContext, property *v1.Property) ([]byte, error if property.Lookup != nil { results, err := lookup(ctx, property.Name, *property.Lookup) - lp, _ := json.Marshal(property.Lookup) - logger.Infof("Results of %v are %v", string(lp), results) + if ctx.IsTraceEnabled() { + lp, _ := json.Marshal(property.Lookup) + logger.Tracef("Results of %v are %v", string(lp), results) + } if err != nil { return nil, err }