Skip to content

fix(logging): drop noisy envelope-serialization debug log - #1988

Merged
tustanivsky merged 2 commits into
masterfrom
fix/drop-noisy-envelope-serialize-log
Aug 13, 2026
Merged

tustanivsky merged 2 commits into
masterfrom
fix/drop-noisy-envelope-serialize-log

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

The serializing envelope into buffer debug 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.

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 jpnurmi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the accidental debug flood and thanks for fixing it!

@tustanivsky
tustanivsky merged commit 97943b4 into master Aug 13, 2026
60 checks passed
@tustanivsky
tustanivsky deleted the fix/drop-noisy-envelope-serialize-log branch August 13, 2026 09:23
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.23%. Comparing base (490cfc0) to head (0c814c6).
⚠️ Report is 2 commits behind head on master.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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
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