Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(database): 为数据库输出DEBUG日志,以辅助解决ISSUE问题 #1080

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

PaienNate
Copy link
Contributor

@PaienNate PaienNate commented Oct 19, 2024

目前有大量的ISSUE涉及到数据库问题,但我们难以进行复现,当前日志又没有任何输出,排查全靠猜。

基于此,我认为有必要将数据库的执行日志打印到DEBUG日志中并默认开启,从而针对代码进一步优化。

此处的代码打印机制来源于 曾经给小鸟添加 的提交。

当前打印机制: SQL执行前不打印。SQL执行后开始打印。SQL出错打印。

让我们看看到底是什么热闹吧!

dice/model/sqlhook_cgo.go Outdated Show resolved Hide resolved
@PaienNate PaienNate requested a review from a team October 19, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant