-
-
Notifications
You must be signed in to change notification settings - Fork 191
fix(debug): Don't dump bodies larger than 8KiB when debugging #4348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(debug): Don't dump bodies larger than 8KiB when debugging #4348
Conversation
Signed-off-by: Dave Henderson <[email protected]>
✅ Deploy Preview for go-feature-flag-doc-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4348 +/- ##
==========================================
+ Coverage 85.09% 85.18% +0.09%
==========================================
Files 142 143 +1
Lines 5909 5925 +16
==========================================
+ Hits 5028 5047 +19
+ Misses 663 660 -3
Partials 218 218 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Thomas Poignant <[email protected]>
thomaspoignant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hairyhenderson thanks for this PR, I have just updated the doc to be explicit that we can truncate the log.
|



Description
Related to #4346 (doesn't fully resolve it, there's one more PR to come around that).
This truncates bodies that are larger than 8KiB to avoid unnecessarily large log lines, and large levels of memory consumption. This is only really relevant when debug logging is used, but debug should still be able to be used in production for certain purposes.
Checklist
README.mdand/website/docs)