Repository navigation
fix(logging): drop noisy envelope-serialization debug log - #1988
Merged
Merged
Conversation
The "serializing envelope into buffer" line is emitted on every envelope serialization. Since #1841 the crashpad backend serializes the external crash report envelope on every scope flush, so with debug logging enabled this floods the logs. Remove the line.
jpnurmi
approved these changes
Aug 13, 2026
jpnurmi
left a comment
Collaborator
There was a problem hiding this comment.
Sorry about the accidental debug flood and thanks for fixing it!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1988 +/- ##
==========================================
- Coverage 74.32% 74.23% -0.10%
==========================================
Files 104 104
Lines 25629 25628 -1
Branches 4626 4626
==========================================
- Hits 19050 19024 -26
- Misses 5276 5299 +23
- Partials 1303 1305 +2 🚀 New features to boost your workflow:
|
1 task
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
sentry-native 0.16.3 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`. - [ ] `resource` blocks have been checked for updates. <details> <summary>release notes</summary> <pre>**Features**: - Forward `enable_logs` option through `NdkOptions` so the Android SDK can enable native structured logging. ([#1971](getsentry/sentry-native#1971)) - Report enabled Qt and WER integrations in event SDK metadata (`sdk.integrations`) alongside the configured crash backend. ([#1969](https://github.com/ getsentry/sentry-native/pull/1969)) - Add `sentry_scope_set_span` and `sentry_scope_set_transaction_object` to bind a span or transaction to a given scope. ([#1981](getsentry/sentry-native#1981)) **Fixes**: - Remove the `serializing envelope into buffer` debug log that could flood logs on every scope flush when an external crash reporter is configured. ([#1988](getsentry/sentry-native#1988)) - Crashpad: avoid allocating while handling a crash. The backend built the attachment `base::FilePath` inside the crash handler; if the crash corrupted the heap (e.g. via an overridden `operator new`) that allocation faults again and the report is lost. The paths are now cached at startup. ([#1984](getsentry/sentry-native#1984)) - Crashpad: prevent external crash reporters from bypassing revoked user consent. ([#1972](getsentry/sentry-native#1972), [crashpad#168](getsentry/crashpad#168)) - Native/Linux: improve startup time by avoiding zeroing a large shmem module array during crash context initialization. ([#1966](getsentry/sentry-native#1966)) - Preserve embedded `NUL` bytes in strings created with `sentry_value_new_string_n` during JSON and MessagePack serialization. `sentry_value_get_length` now returns the full byte length, which can exceed `strlen(sentry_value_as_string(value))`. ([#1968](https://github.com/getsentry/sentry-native/pull/1968))</pre> <p>View the full release notes at <a href="https://github.com/getsentry/sentry-native/releases/tag/0.16.3">https://github.com/getsentry/sentry-native/releases/tag/0.16.3</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!16537
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
serializing envelope into bufferdebug line is emitted on every envelope serialization. Since #1841 the crashpad backend serializes the external crash report envelope on every scope mutation (flush_external_crash_report→sentry_envelope_serialize→sentry__envelope_serialize_into_stringbuilder), so with debug logging enabled this floods the logs. It was reported by an Unreal SDK user who wants to keep debug logging on.