From 685506e310aed3983d2e1d280f80687cea35a980 Mon Sep 17 00:00:00 2001 From: dougbtv Date: Tue, 15 Oct 2024 15:12:36 -0400 Subject: [PATCH] Could not read reconciler cron expression should be a warning Changed from an error, since it returns a default value here, it shouldn't say it's an error, only warn that the file is not present. --- pkg/reconciler/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/config.go b/pkg/reconciler/config.go index a1b3d9b15..2143e0055 100644 --- a/pkg/reconciler/config.go +++ b/pkg/reconciler/config.go @@ -78,7 +78,7 @@ func determineCronExpression(configPath string) (string, error) { return "", logging.Errorf("could not get flatipam config: %v", err) } - _ = logging.Errorf("could not read file: %v, using expression from flatfile: %v", err, flatipam.IPAM.ReconcilerCronExpression) + logging.Verbosef("notice: could not read file: %v, defaulting to expression from configuration: %v", err, flatipam.IPAM.ReconcilerCronExpression) return flatipam.IPAM.ReconcilerCronExpression, nil } logging.Verbosef("using expression: %v", strings.TrimSpace(string(fileContents))) // do i need to trim spaces? idk i think the file would JUST be the expression?