更新http
This commit is contained in:
parent
e4deab46b4
commit
f43e64f40f
@ -24,6 +24,7 @@ use think\exception\ValidateException;
|
|||||||
use think\Response;
|
use think\Response;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use think\facade\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 应用异常处理类
|
* 应用异常处理类
|
||||||
@ -56,6 +57,7 @@ class ExceptionHandle extends Handle
|
|||||||
'line' => $exception->getLine(),
|
'line' => $exception->getLine(),
|
||||||
'message' => $this->getMessage($exception),
|
'message' => $this->getMessage($exception),
|
||||||
'code' => $this->getCode($exception),
|
'code' => $this->getCode($exception),
|
||||||
|
'http' =>Request::url()
|
||||||
];
|
];
|
||||||
$log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]";
|
$log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]";
|
||||||
if ($this->app->config->get('log.record_trace')) {
|
if ($this->app->config->get('log.record_trace')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user