mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
WhatFailureGroupHandler catches failures in method close (#1791)
This commit is contained in:
@@ -64,4 +64,18 @@ class WhatFailureGroupHandler extends GroupHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function close(): void
|
||||||
|
{
|
||||||
|
foreach ($this->handlers as $handler) {
|
||||||
|
try {
|
||||||
|
$handler->close();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
// What failure?
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user