This commit is contained in:
2023-04-16 02:46:54 +08:00
parent a47478f397
commit e2e1814a8e
+1 -1
View File
@@ -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);