Log authentication failures to info debug level.

This commit is contained in:
Josh Rickmar 2013-12-05 10:04:35 -05:00
parent ae4bf50f7a
commit 4bdb88f4bc

View file

@ -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