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

无法开启DEBUG日志 #2797

Closed
LordofAvernus opened this issue Dec 4, 2024 · 1 comment
Closed

无法开启DEBUG日志 #2797

LordofAvernus opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working publish-pre2
Milestone

Comments

@LordofAvernus
Copy link
Collaborator

LordofAvernus commented Dec 4, 2024

版本信息(Version)

main 1feab39c44f89c2713794f3e86d801734b7fdb93

问题描述(Describe)

  • 配置文件中指定debug_log为true后不生效,无法打印出DEBUG日志

截图或日志(Log)

如何复现(To Reproduce)

修改配置文件中的debug_log为true后,观察日志是否出现deubg级别的日志

问题原因

  1. gorm升级后失效【原因未知】
  2. 默认的std输出没有指定日志级别,使用的默认的info级别。
    image

解决方案

  • 将配置文件的debugLog参数传入进来

变更影响面

受影响的模块或功能

  • 日志记录

外部引用的潜在问题或风险

版本兼容性

测试建议

@LordofAvernus LordofAvernus added the bug Something isn't working label Dec 4, 2024
@ColdWaterLW ColdWaterLW added this to the v3.2412.0 milestone Dec 4, 2024
@ColdWaterLW ColdWaterLW modified the milestones: v3.2412.0, v3.2501.0 Dec 30, 2024
@littleniannian
Copy link
Collaborator

  • 自测截图
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working publish-pre2
Projects
None yet
Development

No branches or pull requests

3 participants