Remove unnecessary var data in log messages. Closes #1640

This commit is contained in:
Gabe Kangas
2022-02-25 15:22:52 -08:00
parent 1c02ed291b
commit 6796998124
7 changed files with 14 additions and 24 deletions

View File

@@ -41,7 +41,7 @@ func RequireAdminAuth(handler http.HandlerFunc) http.HandlerFunc {
if !ok || subtle.ConstantTimeCompare([]byte(user), []byte(username)) != 1 || subtle.ConstantTimeCompare([]byte(pass), []byte(password)) != 1 {
w.Header().Set("WWW-Authenticate", `Basic realm="`+realm+`"`)
http.Error(w, "Unauthorized", http.StatusUnauthorized)
log.Debugln("Failed authentication for", r.URL.Path, "from", r.RemoteAddr, r.UserAgent())
log.Debugln("Failed admin authentication")
return
}