cmd: Avoid spammy log messages (fix #5538)

I forgot there are two calls to LoadConfig() here that needed replacing.
This commit is contained in:
Matthew Holt 2023-05-17 16:13:15 -06:00
parent ca14b6edd9
commit 38cb587e0f
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -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