作者 yangfu

清理缓存

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