From e2e1814a8eb930b32f5d6d8bded8a4b6f6141e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 02:46:54 +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 --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index bfcd686..f543ec9 100644 --- a/src/Server.php +++ b/src/Server.php @@ -91,7 +91,7 @@ class Server implements OnRequestInterface $PsrResponse = (new HttpRequestHandler([], $dispatcher))->handle($PsrRequest); } catch (\Throwable $throwable) { - $this->logger->error($throwable->getMessage(), [$throwable]); + \Kiri::getLogger()->error($throwable->getMessage(), [$throwable]); $PsrResponse = $this->exception->emit($throwable, di(ConstrictResponse::class)); } finally { $this->emitter->sender($PsrResponse, $response);