Skip to content

Commit

Permalink
log Patch request
Browse files Browse the repository at this point in the history
  • Loading branch information
bughou committed Apr 27, 2020
1 parent 2cf8f19 commit 2666174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions middlewares/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ func defaultPanicHandler(c *goa.Context) {
func defaultShouldLogBody(c *goa.Context) bool {
method := c.Request.Method
return method == http.MethodPost ||
method == http.MethodDelete ||
method == http.MethodPut
method == http.MethodPatch ||
method == http.MethodPut ||
method == http.MethodDelete
}

func tryUnmarshal(b []byte) interface{} {
Expand Down

0 comments on commit 2666174

Please sign in to comment.