Skip to content

Commit 224316e

Browse files
francislavoiemholt
andauthored
autohttps: Move log WARN to INFO, reduce confusion (#6185)
* autohttps: Move log WARN to INFO, reduce confusion * Change implicit condition back to WARN --------- Co-authored-by: Matthew Holt <[email protected]>
1 parent 5f6758d commit 224316e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/caddyhttp/autohttps.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
117117
srv.AutoHTTPS = new(AutoHTTPSConfig)
118118
}
119119
if srv.AutoHTTPS.Disabled {
120-
logger.Warn("automatic HTTPS is completely disabled for server", zap.String("server_name", srvName))
120+
logger.Info("automatic HTTPS is completely disabled for server", zap.String("server_name", srvName))
121121
continue
122122
}
123123

@@ -225,7 +225,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
225225

226226
// nothing left to do if auto redirects are disabled
227227
if srv.AutoHTTPS.DisableRedir {
228-
logger.Warn("automatic HTTP->HTTPS redirects are disabled", zap.String("server_name", srvName))
228+
logger.Info("automatic HTTP->HTTPS redirects are disabled", zap.String("server_name", srvName))
229229
continue
230230
}
231231

0 commit comments

Comments
 (0)