2
0

Fix panic when logging batch error

This commit is contained in:
Tom Möller
2022-08-31 13:25:08 +02:00
committed by Jack Christensen
parent f5cdf0d383
commit dfce986bb5
+1
View File
@@ -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) {