Version flag; close #175; improve error logging

Fix #175

improve error logging

build assets
This commit is contained in:
Henrique Dias committed 2017-07-30 11:32:14 +01:00
1 parent f9bfe32f7a
commit 24dbcb87ba
4 files changed
+305 -293

No files matched your search

+3 -2
View File
@@ -440,8 +440,9 @@ func (m *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Print(err)
w.Write([]byte(err.Error()))
} else {
log.Print(code)
w.Write([]byte(http.StatusText(code)))
txt := http.StatusText(code)
log.Printf("%v: %v %v\n", r.URL.Path, code, txt)
w.Write([]byte(txt))
}
}
}