Skip to content

Commit

Permalink
fix: log unprocessable entity error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Sep 20, 2024
1 parent 478f2f0 commit 92d242e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/api/v1/testworkflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ func (s *TestkubeAPI) ExecuteTestWorkflowHandlerV2() fiber.Handler {
err = c.BodyParser(&request)
if err != nil && !errors.Is(err, fiber.ErrUnprocessableEntity) {
return s.BadRequest(c, errPrefix, "invalid body", err)
} else if err != nil {
log.DefaultLogger.Errorw("TestWorkflow execution request parsing error", "error", err, "body", string(c.Body()))
}

log.DefaultLogger.Infow("TestWorkflow execution request on runner", "name", name, "request", request, "error", err)
Expand Down

0 comments on commit 92d242e

Please sign in to comment.