Skip to content

Commit

Permalink
Track scrape exceptions to STDERR (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Mar 26, 2019
1 parent 4b9bd44 commit e347fc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Promitor.Scraper.Host/Scheduling/MetricScrapingJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public async Task ExecuteAsync(CancellationToken cancellationToken)
}
catch (Exception exception)
{
_logger.LogError($"Failed to scrape: {exception.Message}");
_exceptionTracker.Track(exception);
}
}
Expand Down

0 comments on commit e347fc2

Please sign in to comment.