Skip to content

Commit

Permalink
WhatFailureGroupHandler catches failures in method close (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetragramat authored Feb 4, 2023
1 parent 7c04005 commit 1f25f9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Monolog/Handler/WhatFailureGroupHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,18 @@ public function handleBatch(array $records): void
}
}
}

/**
* {@inheritDoc}
*/
public function close(): void
{
foreach ($this->handlers as $handler) {
try {
$handler->close();
} catch (\Throwable $e) {
// What failure?
}
}
}
}

0 comments on commit 1f25f9b

Please sign in to comment.