Debug
This commit is contained in:
parent
22d2611a5c
commit
27d6d97a99
@ -21,11 +21,11 @@ func ConnectToDatabase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Sentry
|
// TODO: Sentry
|
||||||
config.ConnConfig.LogLevel = pgx.LogLevelWarn
|
config.ConnConfig.LogLevel = pgx.LogLevelDebug
|
||||||
config.ConnConfig.Logger = logrusadapter.NewLogger(logrus.New())
|
config.ConnConfig.Logger = logrusadapter.NewLogger(logrus.New())
|
||||||
|
|
||||||
config.MinConns = 1
|
config.MinConns = 1
|
||||||
config.MaxConns = 5
|
config.MaxConns = 2
|
||||||
|
|
||||||
config.ConnConfig.BuildStatementCache = func(conn *pgconn.PgConn) stmtcache.Cache {
|
config.ConnConfig.BuildStatementCache = func(conn *pgconn.PgConn) stmtcache.Cache {
|
||||||
return stmtcache.New(conn, stmtcache.ModeDescribe, 512)
|
return stmtcache.New(conn, stmtcache.ModeDescribe, 512)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user