Skip to content

Commit

Permalink
Merge pull request #42538 from nextcloud/fix/log-rotate-log-level
Browse files Browse the repository at this point in the history
Fix log rotation notification level (warning->info)
  • Loading branch information
solracsf committed Jan 1, 2024
2 parents a01121b + 7a212b1 commit 4119695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Log/Rotate.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function run($dummy): void {
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]);
}
}
}

0 comments on commit 4119695

Please sign in to comment.