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:
parent
833c7540a3
commit
bfd81a83cf
@ -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]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user