Skip to content

Commit 34a9a58

Browse files
committed
Optimized exception log
1 parent 2b68c1c commit 34a9a58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Exception/Handler/AppExceptionHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function __construct(StdoutLoggerInterface $logger)
3232

3333
public function handle(Throwable $throwable, ResponseInterface $response)
3434
{
35+
$this->logger->error($throwable->getMessage());
3536
$this->logger->error($throwable->getTraceAsString());
3637
return $response->withStatus(500)->withBody(new SwooleStream('Internal Server Error.'));
3738
}

0 commit comments

Comments
 (0)