Skip to content

Disable Rich tracebacks by default#6576

Merged
Flame442 merged 4 commits intoCog-Creators:V3/developfrom
Jackenmen:disable_rich_logging_by_default
Aug 9, 2025
Merged

Disable Rich tracebacks by default#6576
Flame442 merged 4 commits intoCog-Creators:V3/developfrom
Jackenmen:disable_rich_logging_by_default

Conversation

@Jackenmen
Copy link
Copy Markdown
Member

Description of the changes

Rich tracebacks trade usability for the "nice look". We don't want that as a default experience. It's been a constant support nightmare due to how much it inflates the text length of tracebacks, doesn't react well to terminal resizing, and, empirically, probably also slows down console logging noticeably...
I feel like this has been a known "ah, yes, this does kinda suck and we'd like to change it at some point" for a while.

Have the changes in this PR been tested?

Yes

Rich logging is trading usability for the "nice look". We don't want that as a default experience.
@Jackenmen Jackenmen added the Type: Enhancement Something meant to enhance existing Red features. label May 24, 2025
@github-actions github-actions bot added the Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). label May 24, 2025
@Jackenmen Jackenmen force-pushed the disable_rich_logging_by_default branch from 6786d8f to 6b0ff85 Compare May 24, 2025 19:16
@Jackenmen
Copy link
Copy Markdown
Member Author

One could argue that, since this is marked as useful for development, maybe we should auto-enable it as part of the --dev flag, but I think that it would be too opinionated to do that.

@Flame442 Flame442 self-assigned this Aug 9, 2025
@Flame442 Flame442 added this to the 3.5.21 milestone Aug 9, 2025
Copy link
Copy Markdown
Member

@Flame442 Flame442 left a comment

Choose a reason for hiding this comment

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

giphy

@Flame442 Flame442 merged commit 2dbbb51 into Cog-Creators:V3/develop Aug 9, 2025
17 checks passed
@red-githubbot red-githubbot bot added the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label Aug 9, 2025
@Jackenmen Jackenmen deleted the disable_rich_logging_by_default branch August 25, 2025 18:05
@Jackenmen Jackenmen added Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. and removed Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. labels Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Enhancement Something meant to enhance existing Red features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants