diff options
author | Nick Thomas <nick@gitlab.com> | 2017-03-08 17:27:37 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-03-08 18:02:35 +0300 |
commit | fa9890420cf5dbbca652fceb05708b67c393ebb5 (patch) | |
tree | cb1eebd3a6056abc252b73dfa7f5259aa3a70c5b /domain.go | |
parent | 79738be56d5349a16500d2cb80e3473e5a079053 (diff) |
Use fmt/log.Println, not the println builtin
Diffstat (limited to 'domain.go')
-rw-r--r-- | domain.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"] |