From ba9086b56bc41a10196cf051389017c0b1a12b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 29 Jun 2021 14:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/BaseObject.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php index ef746fc1..9947bfae 100644 --- a/System/Abstracts/BaseObject.php +++ b/System/Abstracts/BaseObject.php @@ -11,7 +11,6 @@ namespace Snowflake\Abstracts; use Exception; use JetBrains\PhpStorm\Pure; -use Snowflake\Core\Json; use Snowflake\Snowflake; use Swoole\Coroutine; @@ -218,7 +217,7 @@ class BaseObject implements Configure } $content = (empty($method) ? '' : $method . ': ') . $message; - $message = "\033[41;37m" . PHP_EOL . "[" . date('Y-m-d H:i:s') . '][ERROR]: ' . $content . PHP_EOL . "\033[0m"; + $message = "\033[41;37m[" . date('Y-m-d H:i:s') . '][ERROR]: ' . $content . "\033[0m" . PHP_EOL; if (!empty($file)) { $message .= "\033[41;37m[" . date('Y-m-d H:i:s') . '][ERROR]: ' . $file . "\033[0m";