Merge pull request #42539 from nextcloud/backport/42538/stable28

[stable28] Fix log rotation notification level (warning->info)
This commit is contained in:
Git'Fellow 2024-01-01 20:20:16 +01:00 committed by GitHub
commit ca34f0c6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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]);
}
}
}