Remove bad error check
This commit is contained in:
@@ -153,10 +153,6 @@ func connect(ctx context.Context, config *ConnConfig) (c *Conn, err error) {
|
|||||||
c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host})
|
c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host})
|
||||||
}
|
}
|
||||||
c.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config)
|
c.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if c.shouldLog(LogLevelError) {
|
if c.shouldLog(LogLevelError) {
|
||||||
c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})
|
c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})
|
||||||
|
|||||||
Reference in New Issue
Block a user