1
0
mirror of https://github.com/flarum/core.git synced 2025-04-22 08:06:15 +02:00

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 833c7540a3
commit bfd81a83cf

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