mirror of
https://github.com/flarum/core.git
synced 2025-07-15 22:06:24 +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:
@ -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]));
|
||||
|
Reference in New Issue
Block a user