diff options
author | dartcafe <github@dartcafe.de> | 2021-05-19 13:55:29 +0200 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-19 13:55:29 +0200 |
commit | 7c77e7431478ac67be34eec6dd10325233a2f64e (patch) | |
tree | 94c7bfbe50964ed76e60b7525ba5434f7903612a /lib/public/Log | |
parent | fd284f428dc15c0ebd4054fa5e4e9431d518bcb1 (diff) | |
download | nextcloud-server-7c77e7431478ac67be34eec6dd10325233a2f64e.tar.gz nextcloud-server-7c77e7431478ac67be34eec6dd10325233a2f64e.zip |
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; |