mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
cmd: Avoid spammy log messages (fix #5538)
I forgot there are two calls to LoadConfig() here that needed replacing.
This commit is contained in:
parent
ca14b6edd9
commit
38cb587e0f
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ func watchConfigFile(filename, adapterName string) {
|
||||||
//nolint:staticcheck
|
//nolint:staticcheck
|
||||||
for range time.Tick(1 * time.Second) {
|
for range time.Tick(1 * time.Second) {
|
||||||
// get current config
|
// get current config
|
||||||
newCfg, _, err := LoadConfig(filename, adapterName)
|
newCfg, _, err := loadConfigWithLogger(nil, filename, adapterName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger().Error("unable to load latest config", zap.Error(err))
|
logger().Error("unable to load latest config", zap.Error(err))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue