From 38cb587e0f1b38db2c9fb422b4892e48753f00c0 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 17 May 2023 16:13:15 -0600 Subject: cmd: Avoid spammy log messages (fix #5538) I forgot there are two calls to LoadConfig() here that needed replacing. --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/main.go b/cmd/main.go index 7db2092..bfbd0bb 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -214,7 +214,7 @@ func watchConfigFile(filename, adapterName string) { //nolint:staticcheck for range time.Tick(1 * time.Second) { // get current config - newCfg, _, err := LoadConfig(filename, adapterName) + newCfg, _, err := loadConfigWithLogger(nil, filename, adapterName) if err != nil { logger().Error("unable to load latest config", zap.Error(err)) return -- cgit v1.2.3