|
@@ -52,6 +52,8 @@ func initDB() {
|
|
if os.Getenv("DEV_ENV") == "1" {
|
|
if os.Getenv("DEV_ENV") == "1" {
|
|
logCfg = gormLogger.Default
|
|
logCfg = gormLogger.Default
|
|
}
|
|
}
|
|
|
|
+ //logCfg = gormLogger.Default
|
|
|
|
+
|
|
db, err := gorm.Open(mysql.New(mysql.Config{
|
|
db, err := gorm.Open(mysql.New(mysql.Config{
|
|
DSN: dsn,
|
|
DSN: dsn,
|
|
}), &gorm.Config{Logger: logCfg})
|
|
}), &gorm.Config{Logger: logCfg})
|