]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix log rotation notification level (warning->info) 42538/head
authorJosh Richards <josh.t.richards@gmail.com>
Sun, 31 Dec 2023 17:00:47 +0000 (12:00 -0500)
committerJosh Richards <josh.t.richards@gmail.com>
Mon, 1 Jan 2024 01:26:39 +0000 (20:26 -0500)
Fixes #42537

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
lib/private/Log/Rotate.php

index 4c0e258b2f992b16d3391fbb13b23242480c9c0b..efe548b7783959fa7c621972b1768d5a7b30212e 100644 (file)
@@ -43,7 +43,7 @@ class Rotate extends \OCP\BackgroundJob\Job {
                if ($this->shouldRotateBySize()) {
                        $rotatedFile = $this->rotate();
                        $msg = 'Log file "'.$this->filePath.'" was over '.$this->maxSize.' bytes, moved to "'.$rotatedFile.'"';
-                       \OC::$server->getLogger()->warning($msg, ['app' => Rotate::class]);
+                       \OC::$server->getLogger()->info($msg, ['app' => Rotate::class]);
                }
        }
 }