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:
authorNick Thomas <nick@gitlab.com>2017-03-08 17:27:37 +0300
committerNick Thomas <nick@gitlab.com>2017-03-08 18:02:35 +0300
commitfa9890420cf5dbbca652fceb05708b67c393ebb5 (patch)
treecb1eebd3a6056abc252b73dfa7f5259aa3a70c5b /domain.go
parent79738be56d5349a16500d2cb80e3473e5a079053 (diff)
Use fmt/log.Println, not the println builtin
Diffstat (limited to 'domain.go')
-rw-r--r--domain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/domain.go b/domain.go
index 46f57ed0..19e099ac 100644
--- a/domain.go
+++ b/domain.go
@@ -34,7 +34,7 @@ func (d *domain) serveFile(w http.ResponseWriter, r *http.Request, fullPath stri
return err
}
- println("Serving", fullPath, "for", r.URL.Path)
+ fmt.Println("Serving", fullPath, "for", r.URL.Path)
http.ServeContent(w, r, filepath.Base(file.Name()), fi.ModTime(), file)
return nil
}
@@ -52,7 +52,7 @@ func (d *domain) serveCustomFile(w http.ResponseWriter, r *http.Request, code in
return err
}
- println("Serving", fullPath, "for", r.URL.Path, "with", code)
+ fmt.Println("Serving", fullPath, "for", r.URL.Path, "with", code)
// Serve the file
_, haveType := w.Header()["Content-Type"]