Skip to content

Commit

Permalink
Adding traces
Browse files Browse the repository at this point in the history
  • Loading branch information
ealsur committed Sep 3, 2020
1 parent d712480 commit 7e1fb0e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@ public override async Task StopAsync()
{
await this.runAsync.ConfigureAwait(false);
}
catch (TaskCanceledException)
catch (TaskCanceledException ex)
{
// Expected during shutdown
Cosmos.Extensions.TraceException(ex);
}
catch (OperationCanceledException)
catch (OperationCanceledException ex)
{
// Expected during shutdown
Cosmos.Extensions.TraceException(ex);
}
}

Expand Down

0 comments on commit 7e1fb0e

Please sign in to comment.