[GH-ISSUE #1790] WhatFailureGroupHandler does not catch errors from method close #759

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

Originally created by @Tetragramat on GitHub (Jan 27, 2023).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1790

Monolog version 2

\Monolog\Handler\WhatFailureGroupHandler does not catch errors from method \Monolog\Handler\HandlerInterface::close.
That means when close is called on handler and handler tries for example send remaining buffer to remote service but fails, then failure propagates though WhatFailureGroupHandler and execution ends with fatal error.

Originally created by @Tetragramat on GitHub (Jan 27, 2023). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1790 Monolog version 2 `\Monolog\Handler\WhatFailureGroupHandler` does not catch errors from method `\Monolog\Handler\HandlerInterface::close`. That means when close is called on handler and handler tries for example send remaining buffer to remote service but fails, then failure propagates though WhatFailureGroupHandler and execution ends with fatal error.
kerem 2026-03-04 02:17:43 +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#759
No description provided.