mirror of https://github.com/jackc/pgx.git
Go 1.19 go fmt
parent
7ad36f386d
commit
f3e04b28cc
|
@ -58,6 +58,7 @@ func (f LoggerFunc) Log(ctx context.Context, level LogLevel, msg string, data ma
|
||||||
// LogLevelFromString converts log level string to constant
|
// LogLevelFromString converts log level string to constant
|
||||||
//
|
//
|
||||||
// Valid levels:
|
// Valid levels:
|
||||||
|
//
|
||||||
// trace
|
// trace
|
||||||
// debug
|
// debug
|
||||||
// info
|
// info
|
||||||
|
|
|
@ -213,6 +213,7 @@ func ConnectConfig(ctx context.Context, config *Config) (*Pool, error) {
|
||||||
// cancellation
|
// cancellation
|
||||||
// see https://github.com/jackc/pgx/issues/1259
|
// see https://github.com/jackc/pgx/issues/1259
|
||||||
ctx = detachedCtx{ctx}
|
ctx = detachedCtx{ctx}
|
||||||
|
|
||||||
connConfig := p.config.ConnConfig
|
connConfig := p.config.ConnConfig
|
||||||
|
|
||||||
if p.beforeConnect != nil {
|
if p.beforeConnect != nil {
|
||||||
|
|
Loading…
Reference in New Issue