🎨恢复日志,优化监听

This commit is contained in:
2024-06-14 17:23:38 +08:00
parent 1bcad97ed2
commit cbe1188e51
2 changed files with 13 additions and 13 deletions

View File

@@ -72,9 +72,9 @@ func initDatabase() {
}
logLevel := gl.Info
if os.Getenv("GIN_MODE") == "release" {
logLevel = gl.Error
}
//if os.Getenv("GIN_MODE") == "release" {
// logLevel = gl.Error
//}
db, err := gorm.Open(dbDialector, &gorm.Config{
Logger: logger.NewGormLoggerWithConfig(gl.Config{