diff options
author | dartcafe <github@dartcafe.de> | 2021-05-19 14:55:29 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-05-21 12:42:31 +0300 |
commit | 6e499ef0b23f881bfd439453834e74d60cab0096 (patch) | |
tree | cf2d04096e0b78823ce55d5731758ba8fd2fb755 /lib/public/Log | |
parent | b13dbbb9d782887e791a5e46c08df3868e4b874e (diff) |
fix #25813
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/public/Log')
-rw-r--r-- | lib/public/Log/RotationTrait.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Log/RotationTrait.php b/lib/public/Log/RotationTrait.php index d7de50410d6..6c6ea955f03 100644 --- a/lib/public/Log/RotationTrait.php +++ b/lib/public/Log/RotationTrait.php @@ -58,7 +58,7 @@ trait RotationTrait { * @since 14.0.0 */ protected function shouldRotateBySize():bool { - if ((int)$this->maxSize > 0) { + if ((int)$this->maxSize > 0 && file_exist($this->filePath)) { $filesize = @filesize($this->filePath); if ($filesize >= (int)$this->maxSize) { return true; |