Skip to content

Commit

Permalink
Merge pull request #376 from flanksource/fix-crash
Browse files Browse the repository at this point in the history
fix: log error and continue on failed parsing of scraper
  • Loading branch information
moshloop authored Jan 31, 2024
2 parents e19c6c9 + db89415 commit 3fe69e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func startScraperCron(configFiles []string) {
for _, scraper := range scraperConfigsDB {
_scraper, err := v1.ScrapeConfigFromModel(scraper)
if err != nil {
logger.Fatalf("Error parsing config scraper: %v", err)
logger.Errorf("Error parsing config scraper[%s]: %v", scraper.ID, err)
continue
}
scrapers.AddToCron(_scraper)

Expand Down

0 comments on commit 3fe69e4

Please sign in to comment.