[GH-ISSUE #1969] JsonFormatter crashes when stringable object has an error #849

Closed
opened 2026-03-04 03:01:26 +03:00 by kerem · 0 comments
Owner

Originally created by @adrien914 on GitHub (May 19, 2025).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1969

Monolog version 3?

When using JsonFormatter with a stringable object, if the toString() method throws an exception the whole normalization process crashes. We should not throw an exception while trying to log something.

Originally created by @adrien914 on GitHub (May 19, 2025). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1969 Monolog version 3? When using JsonFormatter with a stringable object, if the toString() method throws an exception the whole normalization process crashes. We should not throw an exception while trying to log something.
kerem 2026-03-04 03:01:26 +03:00
  • closed this issue
  • added the
    Bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#849
No description provided.