1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-26 18:16:24 +01:00
This commit is contained in:
greggebura
2025-10-24 09:28:01 +02:00
committed by GitHub
parent 095bf11b27
commit f049cfdcda

View File

@@ -151,7 +151,7 @@ class RotatingFileHandler extends StreamHandler
// suppress errors here as unlink() might fail if two processes
// are cleaning up/rotating at the same time
set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool {
return false;
return true;
});
unlink($file);
restore_error_handler();