Skip to content

Commit

Permalink
Remove incorrect log during successful cancellation flow (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem committed Jul 31, 2023
1 parent f8b866c commit 15204b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DotNetWorker.Grpc/Handlers/InvocationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public bool TryCancel(string invocationId)
try
{
cancellationTokenSource?.Cancel();
_logger.LogWarning("Unable to cancel invocation {invocationId}.", invocationId);
return true;
}
catch (ObjectDisposedException)
Expand All @@ -154,7 +153,7 @@ public bool TryCancel(string invocationId)
}
catch (Exception ex)
{
_logger.LogWarning(ex, "Unable to cancel invocation {invocationId}.", invocationId);
_logger.LogWarning(ex, "Unable to cancel invocation '{invocationId}'.", invocationId);
throw;
}
}
Expand Down

0 comments on commit 15204b1

Please sign in to comment.