From 83412537a27795f664d3b642424e1e50a4cd298a Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Tue, 9 Nov 2021 14:48:53 +0100 Subject: [PATCH] fix(logs): assign INFO scope to correct argument Argument for INFO (constant value 200) was assigned to maxfiles argument incorrectly. --- framework/core/src/Foundation/InstalledSite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Foundation/InstalledSite.php b/framework/core/src/Foundation/InstalledSite.php index b703f351f..b73f65283 100644 --- a/framework/core/src/Foundation/InstalledSite.php +++ b/framework/core/src/Foundation/InstalledSite.php @@ -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]));