Skip to content

Commit 9916ffb

Browse files
committed
fix
1 parent 8ab513b commit 9916ffb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Eocron.DependencyInjection.Interceptors/Retry/RetryAsyncInterceptor.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,7 @@ private void LogFail(IInvocation invocation, int iteration, Exception ex)
203203

204204
private void LogCancel(IInvocation invocation, int iteration)
205205
{
206-
if (iteration == 0)
207-
{
208-
_logger?.LogTrace("Retrying of {invocation} stopped on reaching stop condition", invocation.Method.Name);
209-
return;
210-
}
211-
_logger?.LogTrace("Retrying of {invocation} stopped on reaching stop condition. Attempt: {attempt}", invocation.Method.Name, iteration);
206+
_logger?.LogTrace("Retrying of {invocation} stopped on reaching stop condition", invocation.Method.Name);
212207
}
213208
}
214209
}

0 commit comments

Comments
 (0)