From c149afa3f84649314b0fcb00c3e090cbae42a911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 31 May 2022 08:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoroutineClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CoroutineClient.php b/CoroutineClient.php index 1827946..5e5909c 100644 --- a/CoroutineClient.php +++ b/CoroutineClient.php @@ -90,7 +90,9 @@ class CoroutineClient extends ClientAbstracts $errMsg = sprintf("%s://%s:%s/%s -> error: %s", $this->isSSL() ? "https" : "http", $this->getHost(), $this->getPort(), $path, $this->client->errMsg); - $errMsg .= print_r($data, true); + if (!empty($data)) { + $errMsg .= print_r($data, true); + } $logger->error($errMsg); }