From eb7ffecdb99101e4cd57633b17c8e15d77225316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 22 Jun 2022 16:29:42 +0800 Subject: [PATCH] modify plugin name --- CoroutineClient.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CoroutineClient.php b/CoroutineClient.php index 66460c8..329a07b 100644 --- a/CoroutineClient.php +++ b/CoroutineClient.php @@ -69,7 +69,10 @@ class CoroutineClient extends ClientAbstracts $this->execute($url, $data); } catch (\Throwable $exception) { - Kiri::getDi()->get(Logger::class)->error('rpc', [error_trigger_format($exception)]); + Kiri::getDi()->get(Logger::class)->error('rpc', []); + + Kiri::getLogger()->error(throwable($exception)); + $this->setStatusCode(-1); $this->setBody(jTraceEx($exception)); }