Skip to content

Commit

Permalink
feat: add pgdriver write error to log
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Jun 13, 2022
1 parent 666a70e commit 5ddda3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/pgdriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (cn *Conn) write(ctx context.Context, wb *writeBuffer) error {

if err != nil {
if n == 0 {
Logger.Printf(ctx, "pgdriver: %v", err)
return driver.ErrBadConn
}
return err
Expand Down

0 comments on commit 5ddda3d

Please sign in to comment.