diff options
author | Matthew Holt <[email protected]> | 2023-05-17 16:13:15 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2023-05-17 16:13:15 -0600 |
commit | 38cb587e0f1b38db2c9fb422b4892e48753f00c0 (patch) | |
tree | 79a4a9b5a6594fb005ffd6b6350bf5cfa9be0a98 | |
parent | ca14b6edd95671e7f0731eea91c138cdca760577 (diff) | |
download | caddy-38cb587e0f1b38db2c9fb422b4892e48753f00c0.tar.gz caddy-38cb587e0f1b38db2c9fb422b4892e48753f00c0.zip |
cmd: Avoid spammy log messages (fix #5538)
I forgot there are two calls to LoadConfig() here that needed replacing.
-rw-r--r-- | cmd/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/main.go b/cmd/main.go index 7db209244..bfbd0bbce 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 |