Skip to content

Commit e0270b6

Browse files
committed
chore(PubSub): raising logging level from debug to error for SubscriberClientImpl.SingleChannel
1 parent 5ea3be9 commit e0270b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/SubscriberClientImpl.SingleChannel.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,10 +1182,11 @@ internal bool RecordFailureAndCheckForRetry(Exception exception)
11821182
Skip(SkipFailuresInLogs).
11831183
GroupBy(ex => ex.StatusCode).
11841184
Select(group => $"{group.Count()} errors with status {group.Key}");
1185-
_logger?.LogDebug(exception,
1186-
"Can't recover after reaching the consecutive error limit on stream for client {index}. " +
1187-
"The last errors were {lastErrors}.",
1188-
_clientIndex, string.Join(", ", latestStatuses));
1185+
var msg = $"Can't recover after reaching the consecutive error limit {ConsecutiveFailureLimit}"
1186+
+ $" on stream for client {_clientIndex}."
1187+
+ $" The last errors were {string.Join(", ", latestStatuses)}.";
1188+
_logger?.LogError(exception, msg);
1189+
rpcEx.Data.Add("ExtraInfo", msg);
11891190
return false;
11901191
}
11911192

0 commit comments

Comments
 (0)