fix(logs): assign INFO scope to correct argument

Argument for INFO (constant value 200) was assigned to
maxfiles argument incorrectly.
This commit is contained in:
Daniel Klabbers 2021-11-09 14:48:53 +01:00
parent a627013cd7
commit 83412537a2

View File

@ -174,7 +174,7 @@ class InstalledSite implements SiteInterface
protected function registerLogger(Container $container)
{
$logPath = $this->paths->storage.'/logs/flarum.log';
$handler = new RotatingFileHandler($logPath, Logger::INFO);
$handler = new RotatingFileHandler($logPath, 0, Logger::INFO);
$handler->setFormatter(new LineFormatter(null, null, true, true));
$container->instance('log', new Logger('flarum', [$handler]));