Improve logging in controller, fetcher, poolmgr
TODO: most of these should be in a debug loglevel.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user