Fix log rotation notification level (warning->info)

Fixes #42537 

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
pull/42538/head
Josh Richards 5 months ago
parent a01121b01d
commit 7a212b1f38

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

Loading…
Cancel
Save