From 0d5bad7186be1eadb09c33fa19b4ecc99fbbf5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 18 Aug 2023 21:44:32 +0800 Subject: [PATCH] qqq --- kiri-engine/Error/StdoutLogger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Error/StdoutLogger.php b/kiri-engine/Error/StdoutLogger.php index 7ba702fc..22295fa0 100644 --- a/kiri-engine/Error/StdoutLogger.php +++ b/kiri-engine/Error/StdoutLogger.php @@ -89,7 +89,7 @@ class StdoutLogger extends Component if (str_contains($message, 'inotify_rm_watch')) { return false; } - file_put_contents('php://output', '[' . date('Y-m-d H:i:s') . '] ' . $message . PHP_EOL, FILE_APPEND); + file_put_contents('php://output', '[' . date('Y-m-d H:i:s') . '] ' . $message, FILE_APPEND); $this->error($message, []); return false; } @@ -110,7 +110,7 @@ class StdoutLogger extends Component $this->{$name}(...$arguments); } } catch (\Throwable $exception) { - echo $exception->getMessage() . PHP_EOL; + file_put_contents('php://output', '[' . date('Y-m-d H:i:s') . '] ' . $exception->getMessage(), FILE_APPEND); } }