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
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-03-08 16:43:45 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-03-08 16:43:45 +0300
commitacdbedc1dcb8bf0f06780f3e735d1e963340b94e (patch)
tree7cafd9c4b6d893acf7f95109c6ab0dcbcab0fb76 /domain.go
parentd5ad52d3d0535e022d9e87cc4cb03bdf722b2acd (diff)
Remove noisy debug logs
Diffstat (limited to 'domain.go')
-rw-r--r--domain.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/domain.go b/domain.go
index aca027ee..6e909ec7 100644
--- a/domain.go
+++ b/domain.go
@@ -112,8 +112,6 @@ func (d *domain) serveFile(w http.ResponseWriter, r *http.Request, origPath stri
w.Header().Set("Cache-Control", "max-age=600")
w.Header().Set("Expires", time.Now().Add(10*time.Minute).Format(time.RFC1123))
- fmt.Println("Serving", fullPath, "for", r.URL.Path)
-
// ServeContent sets Content-Type for us
http.ServeContent(w, r, origPath, fi.ModTime(), file)
return nil
@@ -136,9 +134,6 @@ func (d *domain) serveCustomFile(w http.ResponseWriter, r *http.Request, code in
setContentType(w, origPath)
w.Header().Set("Content-Length", strconv.FormatInt(fi.Size(), 10))
-
- // Serve the file
- fmt.Println("Serving", fullPath, "for", r.URL.Path, "with", code)
w.WriteHeader(code)
if r.Method != "HEAD" {