From cba27222facfc6e937eefb81d4aa4c9a2505a954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 16:16:04 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- AsyncClient.php | 2 +- CoroutineClient.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncClient.php b/AsyncClient.php index 57145fa..ead9c67 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -62,7 +62,7 @@ class AsyncClient extends ClientAbstracts try { $this->generate_client($data, ...$url); } catch (\Throwable $exception) { - Kiri::getDi()->get(Logger::class)->error('rpc', [$exception]); + Kiri::getDi()->get(Logger::class)->error('rpc', [error_trigger_format($exception)]); $this->setStatusCode(-1); $this->setBody(jTraceEx($exception)); } diff --git a/CoroutineClient.php b/CoroutineClient.php index 68ab53e..83402ef 100644 --- a/CoroutineClient.php +++ b/CoroutineClient.php @@ -67,7 +67,7 @@ class CoroutineClient extends ClientAbstracts $this->setBody($this->client->getBody()); $this->setResponseHeader($this->client->headers); } catch (\Throwable $exception) { - Kiri::getDi()->get(Logger::class)->error('rpc', [$exception]); + Kiri::getDi()->get(Logger::class)->error('rpc', [error_trigger_format($exception)]); $this->setStatusCode(-1); $this->setBody(jTraceEx($exception)); }