From 934846801003e59e006d8ca47d985c6102bc93aa Mon Sep 17 00:00:00 2001 From: Tuomo Ala-Vannesluoma Date: Tue, 2 Oct 2018 19:16:34 +0300 Subject: Fix comparing the domain and log request information as well. Removed invalid comment and fixed one else case. --- app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app.go') diff --git a/app.go b/app.go index a8810da3..862a1894 100644 --- a/app.go +++ b/app.go @@ -175,7 +175,10 @@ func (a *theApp) serveContent(ww http.ResponseWriter, r *http.Request, https boo // Only for projects that have access control enabled if domain.IsAccessControlEnabled(r) { - log.Debug("Authenticate request") + log.WithFields(log.Fields{ + "host": r.Host, + "path": r.RequestURI, + }).Debug("Authenticate request") if a.Auth.CheckAuthentication(&w, r, domain.GetID(r)) { return -- cgit v1.2.3