作者 yangfu

偏差图\便签配置

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