Skip to content

Commit

Permalink
Fix panic when logging batch error
Browse files Browse the repository at this point in the history
  • Loading branch information
MoinTom authored and jackc committed Sep 3, 2022
1 parent f5cdf0d commit dfce986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ func (c *Conn) logBatchResults(ctx context.Context, startTime time.Time, results
endTime := time.Now()
c.log(ctx, LogLevelError, "SendBatch", map[string]interface{}{"err": results.err, "time": endTime.Sub(startTime)})
}
return results
}

if c.shouldLog(LogLevelInfo) {
Expand Down

0 comments on commit dfce986

Please sign in to comment.