mirror of https://github.com/caddyserver/caddy.git
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 <mholt@users.noreply.github.com>
This commit is contained in:
parent
5f6758dab5
commit
224316eaec
|
@ -117,7 +117,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
|
||||||
srv.AutoHTTPS = new(AutoHTTPSConfig)
|
srv.AutoHTTPS = new(AutoHTTPSConfig)
|
||||||
}
|
}
|
||||||
if srv.AutoHTTPS.Disabled {
|
if srv.AutoHTTPS.Disabled {
|
||||||
logger.Warn("automatic HTTPS is completely disabled for server", zap.String("server_name", srvName))
|
logger.Info("automatic HTTPS is completely disabled for server", zap.String("server_name", srvName))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
|
||||||
|
|
||||||
// nothing left to do if auto redirects are disabled
|
// nothing left to do if auto redirects are disabled
|
||||||
if srv.AutoHTTPS.DisableRedir {
|
if srv.AutoHTTPS.DisableRedir {
|
||||||
logger.Warn("automatic HTTP->HTTPS redirects are disabled", zap.String("server_name", srvName))
|
logger.Info("automatic HTTP->HTTPS redirects are disabled", zap.String("server_name", srvName))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue