Skip to content

Conversation

rosa
Copy link
Member

@rosa rosa commented Jul 17, 2024

So that instead of truncating to a fixed amount of lines, we check how much space we have and add lines until we hit the limit.

This is a follow-up to #260

@rosa rosa force-pushed the truncate-error-backtrace branch from 070936c to e556466 Compare July 17, 2024 18:54
So that instead of truncating to a fixed amount of lines, we check how
much space we have and add lines until we hit the limit.
@rosa rosa force-pushed the truncate-error-backtrace branch from e556466 to a77d387 Compare July 17, 2024 19:16
rosa added 2 commits July 17, 2024 21:40
They have variable size TEXT columns and return `nil` for the limit
value. Just use the default TEXT size for MySQL as default.
For PostgreSQL and SQLite, instead of having them conform to the same
limit as MySQL, just let them store the whole backtrace. I tried using a
LONGTEXT column for MySQL but the schema is incompatible with PostgreSQL
and SQLite, and it was getting a bit too complicated.
@rosa rosa merged commit 82500a1 into main Jul 19, 2024
@rosa rosa deleted the truncate-error-backtrace branch July 19, 2024 10:48
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.

1 participant