From 42db46a8cc37f9e90b8f31873d028ce16d60a2b6 Mon Sep 17 00:00:00 2001 From: olaf michaelis Date: Fri, 1 Apr 2022 21:59:40 +0200 Subject: [PATCH] Add error parsing auth message --- src/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.go b/src/server.go index efe93ee..c676055 100644 --- a/src/server.go +++ b/src/server.go @@ -45,7 +45,7 @@ func (h *handler) ServeHTTP(resp http.ResponseWriter, req *http.Request) { if len(CLI.BasicAuth) > 0 { user, pass, ok := req.BasicAuth() if !ok { - fmt.Println("Error parsing basic auth") + lg.LogError("Error parsing sent basic auth", logrus.Fields{}) resp.WriteHeader(401) return }