Selaa lähdekoodia

Fix issue https://github.com/Seldaek/monolog/issues/1984 (#1999)

greggebura 2 kuukautta sitten
vanhempi
commit
f049cfdcda
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Monolog/Handler/RotatingFileHandler.php

+ 1 - 1
src/Monolog/Handler/RotatingFileHandler.php

@@ -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();