diff options
author | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-07-01 21:57:49 +0300 |
---|---|---|
committer | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-07-02 17:59:24 +0300 |
commit | e9253d07ddad509465d64ca58400e527bc378da9 (patch) | |
tree | f57eb18b7a9c51570db25e3b988bc45a0b3d63e6 /app.go | |
parent | 9681f91e84e78035f48f85c320ae1a3aa4b6ee07 (diff) |
Add debug logging
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,11 +11,11 @@ import ( "sync" "time" - mimedb "gitlab.com/lupine/go-mimedb" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/rs/cors" log "github.com/sirupsen/logrus" + mimedb "gitlab.com/lupine/go-mimedb" "gitlab.com/gitlab-org/gitlab-pages/internal/admin" "gitlab.com/gitlab-org/gitlab-pages/internal/artifact" @@ -174,6 +174,8 @@ 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") + if a.Auth.CheckAuthentication(&w, r, domain.GetID(r)) { return } |