[GH-ISSUE #1454] Does AbstractHandler really need __destruct? #613

Closed
opened 2026-03-04 02:16:25 +03:00 by kerem · 0 comments
Owner

Originally created by @cloudop on GitHub (Apr 15, 2020).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1454

Monolog version 1.x

If throw a exception in code, will trigger handlers __destruct, then handlers will reset all logged records.
And cause log missed.
Explain below.
code 1(log a)
code 2(log b)
throw a exception
catch
code 3 (log c)

And now log a and b missed.
Consider delete that __destruct??

Originally created by @cloudop on GitHub (Apr 15, 2020). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1454 Monolog version 1.x If throw a exception in code, will trigger handlers __destruct, then handlers will reset all logged records. And cause log missed. Explain below. code 1(log a) code 2(log b) throw a exception catch code 3 (log c) And now log a and b missed. Consider delete that __destruct??
kerem 2026-03-04 02:16:25 +03:00
  • closed this issue
  • added the
    Support
    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#613
No description provided.