Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 12:00 UTC
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>
Francis Lavoie committed
May 20, 2024 at 15:14 UTC
224316eaecd6bffd38719e1e03e09f8fe51649e7
1 file changed
+2
-2
modules/caddyhttp/autohttps.go
+2
-2
@@ -117,7 +117,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
117
srv.AutoHTTPS = new(AutoHTTPSConfig)
118
}
119
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))
121
continue
122
}
123
@@ -225,7 +225,7 @@ func (app *App) automaticHTTPSPhase1(ctx caddy.Context, repl *caddy.Replacer) er
225
226
// nothing left to do if auto redirects are disabled
227
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))
229
continue
230
}
231