mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
feat:添加关键信息日志
This commit is contained in:
parent
7fe3436819
commit
b8d51c6462
@ -235,10 +235,10 @@ class AbstractModel extends Model
|
|||||||
} catch (\Throwable $eb) {
|
} catch (\Throwable $eb) {
|
||||||
info($eb);
|
info($eb);
|
||||||
}
|
}
|
||||||
|
info($e);
|
||||||
if ($e instanceof ApiException) {
|
if ($e instanceof ApiException) {
|
||||||
throw new ApiException( config('app.debug') ? $e->getMessage() : '处理错误', $e->getData(), $e->getCode());
|
throw new ApiException( config('app.debug') ? $e->getMessage() : '处理错误', $e->getData(), $e->getCode());
|
||||||
} else {
|
} else {
|
||||||
info($e);
|
|
||||||
throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误');
|
throw new ApiException( config('app.debug') ? ($e->getMessage() ?: '处理错误') : '处理错误');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user