clarify logs and gitignore and skipping vendor from now on
Former-commit-id: c8b61b58379d768f04e1593c2a77cf429407cf62
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user