Skip to content

Commit

Permalink
Fix logging for Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed May 31, 2024
1 parent c5f3d6a commit 7c6e7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TournamentManager/TournamentManager/TournamentCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public virtual async Task SetRoundCompleted(RoundEntity round, CancellationToken
if (!await _appDb.MatchRepository.AllMatchesCompletedAsync(round, cancellationToken))
{
var ex = new InvalidOperationException($"Round {round.Id} has uncompleted matches.");
_logger.LogCritical(@"Round {RoundId} has uncompleted matches. {Exception}", round.Id, ex);
_logger.LogCritical(ex,@"Round {RoundId} has uncompleted matches.", round.Id);
throw ex;
}

Expand Down

0 comments on commit 7c6e7ba

Please sign in to comment.