summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2023-05-17 16:13:15 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2023-05-17 16:13:15 -0600
commit38cb587e0f1b38db2c9fb422b4892e48753f00c0 (patch)
tree79a4a9b5a6594fb005ffd6b6350bf5cfa9be0a98 /cmd
parentca14b6edd95671e7f0731eea91c138cdca760577 (diff)
cmd: Avoid spammy log messages (fix #5538)
I forgot there are two calls to LoadConfig() here that needed replacing.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/main.go2
1 files changed, 1 insertions, 1 deletions
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