clarify logs and gitignore and skipping vendor from now on

Former-commit-id: c8b61b58379d768f04e1593c2a77cf429407cf62
This commit is contained in:
bel
2019-06-22 16:34:34 -06:00
parent 35b3ff2c2d
commit 9faa727261
11 changed files with 25 additions and 17 deletions

View File

@@ -35,13 +35,13 @@ func (s *Server) notFound(w http.ResponseWriter, r *http.Request) {
func (s *Server) userError(w http.ResponseWriter, r *http.Request, err error) {
status := http.StatusBadRequest
log.Printf("%d: %v", status, err)
log.Printf("[userError] %d: %v", status, err)
w.WriteHeader(status)
}
func (s *Server) error(w http.ResponseWriter, r *http.Request, err error) {
status := http.StatusInternalServerError
log.Printf("%d: %v", status, err)
log.Printf("[error] %d: %v", status, err)
w.WriteHeader(status)
}