Skip to content

Conversation

@ShocOne
Copy link
Member

@ShocOne ShocOne commented Apr 11, 2024

Change

Refactor response/success.go to improve response body logging

Type of Change

  • Refactor (refactoring code, removing code, changing code structure)

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I did format my code

@ShocOne ShocOne merged commit 73e3f3a into main Apr 11, 2024
return func() {
bodyBytes, err := io.ReadAll(resp.Body)
if err != nil {
log.Error("Error reading response body for logging", zap.Error(err))

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants