From 108428977e91b288d9cee62883e4fae2d8997272 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Sun, 22 Dec 2019 10:45:13 +0100 Subject: [PATCH] Update warning message and change loglevel to warn --- common/httpapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/httpapi.go b/common/httpapi.go index 46b389729..94550cf35 100644 --- a/common/httpapi.go +++ b/common/httpapi.go @@ -137,7 +137,7 @@ func SetupHTTPAPI(servMux *http.ServeMux, apiMux http.Handler, cfg *config.Dendr // WrapHandlerInBasicAuth adds basic auth to a handler. Only used for /metrics func WrapHandlerInBasicAuth(h http.Handler, b BasicAuth) http.HandlerFunc { if b.Username == "" || b.Password == "" { - logrus.Info("Metrics are exposed without protection. Make sure you set up protection at proxy level.") + logrus.Warn("Metrics are exposed without protection. Make sure you set up protection at proxy level.") } return func(w http.ResponseWriter, r *http.Request) { // Serve without authorization if either Username or Password is unset