Skip to content

Commit

Permalink
Loggin exception
Browse files Browse the repository at this point in the history
  • Loading branch information
klesta490 authored and Vladimír Kleštinec committed Oct 9, 2023
1 parent 20d0a81 commit 8cdac30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KubernetesClient/LeaderElection/LeaderElector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private async Task AcquireAsync(CancellationToken cancellationToken)
else
{
// else timeout
_ = acq.ContinueWith(t => _ = t.Exception /* prevent UnobservedTaskException */, TaskContinuationOptions.OnlyOnFaulted);
_ = acq.ContinueWith(t => OnError?.Invoke(t.Exception), TaskContinuationOptions.OnlyOnFaulted);
}
}
finally
Expand Down

0 comments on commit 8cdac30

Please sign in to comment.