@marcel91200 / caddy Mirror · read-only / commits / 38cb587e
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 01:45 UTC

cmd: Avoid spammy log messages (fix #5538)

I forgot there are two calls to LoadConfig() here that needed replacing.

Matthew Holt committed May 17, 2023 at 16:13 UTC 38cb587e0f1b38db2c9fb422b4892e48753f00c0
1 file changed +1 -1
cmd/main.go
+1 -1
@@ -214,7 +214,7 @@ func watchConfigFile(filename, adapterName string) {
214 //nolint:staticcheck
215 for range time.Tick(1 * time.Second) {
216 // get current config
217 - newCfg, _, err := LoadConfig(filename, adapterName)
217 + newCfg, _, err := loadConfigWithLogger(nil, filename, adapterName)
218 if err != nil {
219 logger().Error("unable to load latest config", zap.Error(err))
220 return