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