异常啊异常
This commit is contained in:
@@ -7,8 +7,6 @@ namespace Aether;
|
||||
use Hyperf\Context\Context;
|
||||
use Hyperf\ExceptionHandler\ExceptionHandler;
|
||||
use Hyperf\HttpMessage\Stream\SwooleStream;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Throwable;
|
||||
|
||||
@@ -16,10 +14,9 @@ use function Hyperf\Support\env;
|
||||
|
||||
class RpcExceptionHandler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
*/
|
||||
public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface
|
||||
{var_dump($throwable->getMessage());
|
||||
{
|
||||
var_dump($throwable->getMessage());
|
||||
try {
|
||||
// 获取请求ID(用于日志追踪)
|
||||
$requestId = Context::get('request_id', '');
|
||||
|
||||
Reference in New Issue
Block a user