Skip to content

Commit 13a4b3f

Browse files
authored
fix error from copilot
1 parent 33696fb commit 13a4b3f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/pool/pool.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,7 @@ func (p *ConnPool) putConn(ctx context.Context, cn *Conn, freeTurn bool) {
693693
if err != nil {
694694
// Hook changed the state (e.g., to UNUSABLE for handoff)
695695
// Keep the state set by the hook and pool the connection anyway
696-
if internal.Logger.Enabled(ctx, internal.LogLevelDebug) {
697-
internal.Logger.Printf(ctx, "Connection state changed by hook to %v, pooling as-is", currentState)
698-
}
696+
internal.Logger.Printf(ctx, "Connection state changed by hook to %v, pooling as-is", currentState)
699697
}
700698

701699
// unusable conns are expected to become usable at some point (background process is reconnecting them)

0 commit comments

Comments
 (0)