Version flag; close #175; improve error logging
Fix #175 improve error logging build assets
This commit is contained in:
4 files changed
+305
-293
No files matched your search
+3
-2
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user