作者 yangfu

清理缓存

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