1
0
Fork 0

Update internal/api/api.go

main
jhot 2023-11-25 07:03:46 +00:00
parent b5b37a81ba
commit 8ceeed9278
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ func setEntityStateHandler(w http.ResponseWriter, r *http.Request) {
var extras map[string]any
err := render.DecodeJSON(r.Body, &extras)
if err != nil {
l.Error("Error decoding JSON body", "error", err, "body", string(r.Body))
b, _ := io.ReadAll(r.Body)
l.Error("Error decoding JSON body", "error", err, "body", string(b))
}
var haErr error
if err == nil && len(extras) > 0 {