Skip to content

Commit

Permalink
feat: Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmichaelchen committed Sep 13, 2023
1 parent 3b92e0b commit 300f859
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cli/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ func executeRequest(payload any, operationName string, logErrors bool) error {
}

if logErrors && response.Code != "" {
log.Errorf("Received %s error for path (%s): %s", response.Code, response.Path, response.Error)
log.Errorf(
"Operation %s failed: Received %s error for path (%s): %s",
operationName, response.Code, response.Path, response.Error,
)
}

return nil
Expand Down

0 comments on commit 300f859

Please sign in to comment.