From 4bdb88f4bcb253ff7b935ba9ba499c14c403114a Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 5 Dec 2013 10:04:35 -0500 Subject: [PATCH] Log authentication failures to info debug level. --- sockets.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sockets.go b/sockets.go index 1b17112..f78eb09 100644 --- a/sockets.go +++ b/sockets.go @@ -674,6 +674,7 @@ func (s *server) Start() { auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(login)) authhdr := r.Header["Authorization"] if len(authhdr) <= 0 || authhdr[0] != auth { + log.Infof("Frontend did not supply correct authentication.") return errors.New("auth failure") } return nil