We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e00098f + 72def6d commit 736238eCopy full SHA for 736238e
1 file changed
src/SeqCli/Ingestion/LogShipper.cs
@@ -85,12 +85,13 @@ public static async Task ShipBufferAsync(
85
}
86
catch (Exception ex)
87
{
88
- var millisecondsDelay = (int)Math.Min(Math.Pow(2, retries) * 2000, 60000);
89
- sendFailureLog.Error(ex, "Failed to send an event batch; retry in {MillisecondsDelay}", millisecondsDelay);
90
-
91
- await Task.Delay(millisecondsDelay, cancellationToken);
92
- retries += 1;
+ sendFailureLog.Error(ex, "Failed to ship a batch");
93
+
+ var millisecondsDelay = (int)Math.Min(Math.Pow(2, retries) * 2000, 60000);
+ sendFailureLog.Information("Backing off connection schedule; will retry in {MillisecondsDelay}", millisecondsDelay);
+ await Task.Delay(millisecondsDelay, cancellationToken);
94
+ retries += 1;
95
96
97
0 commit comments