Skip to content

Commit 42db46a

Browse files
committed
Add error parsing auth message
1 parent 3bb81ce commit 42db46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (h *handler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
4545
if len(CLI.BasicAuth) > 0 {
4646
user, pass, ok := req.BasicAuth()
4747
if !ok {
48-
fmt.Println("Error parsing basic auth")
48+
lg.LogError("Error parsing sent basic auth", logrus.Fields{})
4949
resp.WriteHeader(401)
5050
return
5151
}

0 commit comments

Comments
 (0)