作者 yangfu

偏差图\便签配置

... ... @@ -39,7 +39,8 @@ func OpenGormPGDB(source string, logMode string) *gorm.DB {
DSN: source,
PreferSimpleProtocol: true, // disables implicit prepared statement usage
}), &gorm.Config{
Logger: NewLogger(logMode), //newLogger,
Logger: NewLogger(logMode), //newLogger,
DisableAutomaticPing: true,
})
if err != nil {
panic(err)
... ...