mirror of
https://github.com/flarum/framework.git
synced 2025-01-26 15:10:44 +08: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
a627013cd7
commit
83412537a2
|
@ -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…
Reference in New Issue
Block a user