Improve logging in controller, fetcher, poolmgr

TODO: most of these should be in a debug loglevel.
This commit is contained in:
Soam Vasani
2016-11-02 15:06:55 -07:00
parent bfdd706b98
commit f8a1fdf4c6
4 changed files with 26 additions and 2 deletions
+2
View File
@@ -48,10 +48,12 @@ func (api *API) EnvironmentApiCreate(w http.ResponseWriter, r *http.Request) {
if err != nil {
api.respondWithError(w, err)
}
defer r.Body.Close()
var env fission.Environment
err = json.Unmarshal(body, &env)
if err != nil {
log.Printf("Failed to unmarshal request body: [%v]", body)
api.respondWithError(w, err)
return
}