1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

WhatFailureGroupHandler catches failures in method close (#1791)

This commit is contained in:
Tetragramat
2023-02-04 22:53:22 +01:00
committed by GitHub
parent 7c04005a28
commit 1f25f9b343

View File

@@ -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?
}
}
}
}