Skip to content

Commit f049cfd

Browse files
authored
Fix issue #1984 (#1999)
1 parent 095bf11 commit f049cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Monolog/Handler/RotatingFileHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function rotate(): void
151151
// suppress errors here as unlink() might fail if two processes
152152
// are cleaning up/rotating at the same time
153153
set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool {
154-
return false;
154+
return true;
155155
});
156156
unlink($file);
157157
restore_error_handler();

0 commit comments

Comments
 (0)