Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-10-02 19:16:34 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-10-02 19:16:34 +0300
commit934846801003e59e006d8ca47d985c6102bc93aa (patch)
tree9d7edeb8dc243c037d0d3718664f5871ba6f1c2a /app.go
parentc84c03d5fecb2214fe8fb43ad740ccf37a967990 (diff)
Fix comparing the domain and log request information as well. Removed invalid comment and fixed one else case.
Diffstat (limited to 'app.go')
-rw-r--r--app.go5
1 files changed, 4 insertions, 1 deletions
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