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-07-01 21:57:49 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-07-02 17:59:24 +0300
commite9253d07ddad509465d64ca58400e527bc378da9 (patch)
treef57eb18b7a9c51570db25e3b988bc45a0b3d63e6 /app.go
parent9681f91e84e78035f48f85c320ae1a3aa4b6ee07 (diff)
Add debug logging
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/app.go b/app.go
index 59672589..047e7ed9 100644
--- a/app.go
+++ b/app.go
@@ -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
}