mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
All handlers are closeable now
This commit is contained in:
@@ -176,9 +176,7 @@ class ErrorHandler
|
|||||||
|
|
||||||
if ($this->logger instanceof Logger) {
|
if ($this->logger instanceof Logger) {
|
||||||
foreach ($this->logger->getHandlers() as $handler) {
|
foreach ($this->logger->getHandlers() as $handler) {
|
||||||
if ($handler instanceof AbstractHandler) {
|
$handler->close();
|
||||||
$handler->close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user