Skip to content

fix(formatter): Prevent panic on empty log message#94

Merged
gin66 merged 1 commit into
gin66:masterfrom
fdietze:fix/empty-log-panic
Jan 14, 2026
Merged

fix(formatter): Prevent panic on empty log message#94
gin66 merged 1 commit into
gin66:masterfrom
fdietze:fix/empty-log-panic

Conversation

@fdietze
Copy link
Copy Markdown
Contributor

@fdietze fdietze commented Jan 14, 2026

This PR fixes a panic that occurs when a log message is empty. The LogStandardFormatter was calling .unwrap() on sublines.pop(), which returns None for empty messages.

@gin66 gin66 merged commit 73d64ff into gin66:master Jan 14, 2026
5 checks passed
@gin66
Copy link
Copy Markdown
Owner

gin66 commented Jan 14, 2026

Thanks for patch and test.

@fdietze fdietze deleted the fix/empty-log-panic branch January 15, 2026 12:57
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