From d1f1ccedb9ca141e68a59a982b2c2e16591fbb7c Mon Sep 17 00:00:00 2001 From: abdulmohsen Date: Tue, 5 Jul 2022 18:53:24 +0300 Subject: [PATCH] Added EOL for log saving. --- src/Commands/System/TasksCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/System/TasksCommand.php b/src/Commands/System/TasksCommand.php index 74c2ca66..4776cba8 100644 --- a/src/Commands/System/TasksCommand.php +++ b/src/Commands/System/TasksCommand.php @@ -216,7 +216,7 @@ HELP if ($input->getOption('save-log') && count($this->logs) >= 1) { file_put_contents( Config::get('tasks.logfile'), - preg_replace('#\R+#', PHP_EOL, implode(PHP_EOL, $this->logs)), + preg_replace('#\R+#', PHP_EOL, implode(PHP_EOL, $this->logs)) . PHP_EOL, FILE_APPEND ); }