Skip to content

Comments

feat: Strip invisible characters from logger breadcrumbs#359

Merged
limbonaut merged 4 commits intomainfrom
imp/strip-invisible
Sep 16, 2025
Merged

feat: Strip invisible characters from logger breadcrumbs#359
limbonaut merged 4 commits intomainfrom
imp/strip-invisible

Conversation

@limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Sep 12, 2025

Strip ASCII escape sequences and control characters from logger breadcrumbs. We're capturing Godot logger messages as breadcrumbs, and sometimes those messages contain unprintable control characters intended for terminal. Godot doesn't filter those sequences, hence this PR.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 8509622

@limbonaut limbonaut changed the title feat: Strip invisible characters from error breadcrumbs feat: Strip invisible characters from logger breadcrumbs Sep 12, 2025
@limbonaut
Copy link
Collaborator Author

@sentry review

Copy link
Collaborator

@jpnurmi jpnurmi left a comment

Choose a reason for hiding this comment

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

Pity we have to process it all :(

@limbonaut
Copy link
Collaborator Author

It needs to be processed somewhere in the chain, and I'm not sure if this should be upstreamed. Luckily, it doesn't seem to make much dent on performance: <1 usec with a long line on my system.

@limbonaut limbonaut merged commit 9da2a54 into main Sep 16, 2025
47 checks passed
@limbonaut limbonaut deleted the imp/strip-invisible branch September 16, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate Cocoa printing insane amount of debug info in CI

3 participants