consumer group: do not log error on context.Canceled
If join group or sync group is canceled (or fetch?) we are leaving the
group.
Maybe worth just removing errLeftGroup at this point but eh will keep
for now.
@@ -375,7 +375,7 @@ loop:
// Waiting for the backoff is a good time to update our
// metadata; maybe the error is from stale metadata.
backoff := g.cl.cfg.retryBackoff(consecutiveErrors)
- if err != errLeftGroup { // if we left the group we return below
+ if err != errLeftGroup && err != context.Canceled { // if we left the group we return below
g.cl.cfg.logger.Log(LogLevelError, "join and sync loop errored",
"err", err,
"consecutive_errors", consecutiveErrors,
