Skip to content

Commit

Permalink
cleaned up logging a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Feb 20, 2024
1 parent 1c3daa4 commit fb80a57
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ protected void Link<T>(ISourceBlock<T> source, ITargetBlock<T> target, DataflowL
_links.Add(source.LinkTo(target, options));
}

protected Task TraceBlockCompletionAsync<TBlock>(string name, TBlock block) where TBlock : IDataflowBlock
{
return block.Completion.ContinueWith(t =>
protected Task TraceBlockCompletionAsync<TBlock>(string name, TBlock block) where TBlock : IDataflowBlock =>
block.Completion.ContinueWith(t =>
{
var message = t.Status switch
{
Expand All @@ -48,7 +47,6 @@ protected Task TraceBlockCompletionAsync<TBlock>(string name, TBlock block) wher
};
LogTrace(message, Exception?.Message);
}, Token, TaskContinuationOptions.None, TaskScheduler.Default);
}

protected virtual void FaultDataflowBlock(string? name, IDataflowBlock block, Exception exception)
{
Expand Down

0 comments on commit fb80a57

Please sign in to comment.