Skip to content

Commit

Permalink
log exception along with sending to AppInsights
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman committed Apr 18, 2019
1 parent a440359 commit af538e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AppInsightsWithWebJob/ContinuousJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
}
catch (Exception exception)
{
logger.LogCritical(exception, "Continuous job threw an exceptions.");
telemetryClient.TrackException(exception);
}
}
Expand Down

0 comments on commit af538e4

Please sign in to comment.