Просмотр исходного кода

Merge pull request #1055 from chonaso/master

Fix Comparison operator in RotatingFileHandler
Jordi Boggiano 7 лет назад
Родитель
Сommit
2e9de2a0db
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Monolog/Handler/RotatingFileHandler.php

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

@@ -98,7 +98,7 @@ class RotatingFileHandler extends StreamHandler
             $this->mustRotate = !file_exists($this->url);
         }
 
-        if ($this->nextRotation < $record['datetime']) {
+        if ($this->nextRotation <= $record['datetime']) {
             $this->mustRotate = true;
             $this->close();
         }