From 457b7cdc18fb72154f623d613b66acdb069651bd Mon Sep 17 00:00:00 2001 From: domgoer Date: Tue, 14 Jul 2020 20:10:14 +0800 Subject: better wording Signed-off-by: domgoer --- https/tls_config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/https/tls_config.go b/https/tls_config.go index e7cc632..23fac81 100644 --- a/https/tls_config.go +++ b/https/tls_config.go @@ -167,7 +167,7 @@ func ConfigToTLSConfig(c *TLSStruct) (*tls.Config, error) { // Listen starts the server on the given address. If tlsConfigPath isn't empty the server connection will be started using TLS. func Listen(server *http.Server, tlsConfigPath string, logger log.Logger) error { if tlsConfigPath == "" { - level.Info(logger).Log("msg", "TLS is disabled and it cannot be enabled on the fly.", "http2", false) + level.Info(logger).Log("msg", "TLS is disabled.", "http2", false) return server.ListenAndServe() } @@ -197,10 +197,10 @@ func Listen(server *http.Server, tlsConfigPath string, logger log.Logger) error server.TLSNextProto = make(map[string]func(*http.Server, *tls.Conn, http.Handler)) } // Valid TLS config. - level.Info(logger).Log("msg", "TLS is enabled and it cannot be disabled on the fly.", "http2", c.HTTPConfig.HTTP2) + level.Info(logger).Log("msg", "TLS is enabled.", "http2", c.HTTPConfig.HTTP2) case errNoTLSConfig: // No TLS config, back to plain HTTP. - level.Info(logger).Log("msg", "TLS is disabled and it cannot be enabled on the fly.", "http2", false) + level.Info(logger).Log("msg", "TLS is disabled.", "http2", false) return server.ListenAndServe() default: // Invalid TLS config. -- cgit v1.2.3