作者 yangfu

偏差图\便签配置

@@ -39,7 +39,8 @@ func OpenGormPGDB(source string, logMode string) *gorm.DB { @@ -39,7 +39,8 @@ 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, 42 + Logger: NewLogger(logMode), //newLogger,
  43 + DisableAutomaticPing: true,
43 }) 44 })
44 if err != nil { 45 if err != nil {
45 panic(err) 46 panic(err)