Skip to content

Commit

Permalink
workload: log a warning instead of erroring when warming up connections
Browse files Browse the repository at this point in the history
Epic: none
Release note: None
Fixes: #102687
  • Loading branch information
sean- committed May 9, 2023
1 parent de709fa commit 9f71433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workload/pgx_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func NewMultiConnPool(
}

if err := m.WarmupConns(ctx, cfg.WarmupConns); err != nil {
return nil, err
log.Warningf(ctx, "warming up connection pool failed (%v), continuing workload", err)
}

return m, nil
Expand Down

0 comments on commit 9f71433

Please sign in to comment.