Skip to content

fix:GetIndexes多余的Debug#219

Merged
jinzhu merged 1 commit intogo-gorm:masterfrom
helays:master
Oct 26, 2025
Merged

fix:GetIndexes多余的Debug#219
jinzhu merged 1 commit intogo-gorm:masterfrom
helays:master

Conversation

@helays
Copy link
Copy Markdown
Contributor

@helays helays commented Oct 25, 2025

  • [ x] Do only one thing
  • [ x] Non breaking API changes
  • [x ] Tested

What did这个拉取请求做了什么?

移除了 SQLite migrator 中 GetIndexes 函数的 .Debug() 调用,避免在生产环境中产生不必要的调试输出。

用户案例描述

在使用 gorm 的 SQLite 驱动时,由于 GetIndexes 函数中的 .Debug() 调用,总是会输出调试日志,这会在生产环境中污染日志文件,使得难以识别真正的问题。

@jinzhu jinzhu merged commit 5df1f76 into go-gorm:master Oct 26, 2025
3 checks passed
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.

2 participants