Skip to content

Commit

Permalink
chore: remove logging for trusted advisor
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Nov 6, 2024
1 parent 6cc639a commit 1d1ee4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions db/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,6 @@ func generateConfigChange(ctx api.ScrapeContext, newConf, prev models.ConfigItem

if duration > ctx.Properties().Duration("scraper.log.slow_diff_threshold", time.Second) {
ctx.Logger.Warnf("SLOW DIFF >= %s", msg)
} else if duration > 50*time.Millisecond {
ctx.Logger.Infof("SLOW DIFF >= %s", msg)
} else if ctx.Properties().On(false, "scraper.log.items") {
ctx.Logger.V(4).Infof(msg)
}
Expand Down
4 changes: 1 addition & 3 deletions scrapers/aws/trusted_advisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func (aws Scraper) trustedAdvisor(ctx *AWSContext, config v1.AWS, results *v1.Sc
results.Errorf(err, "Failed to describe trusted advisor checks")
return
}
for _, check := range trustAdvidorChecksDescribeOutput.Checks {

for _, check := range trustAdvidorChecksDescribeOutput.Checks {
if config.Excludes(*check.Name) {
logger.Tracef("Skipping check %s", *check.Name)
continue
Expand Down Expand Up @@ -111,8 +111,6 @@ func (aws Scraper) trustedAdvisor(ctx *AWSContext, config v1.AWS, results *v1.Sc
if _analysis, err := utils.ToJSONMap(metadata); err != nil {
analysis.Analysis = _analysis
}

logger.Infof("%s %s %s %v", *check.Name, configType, id, metadata)
}
}
}
Expand Down

0 comments on commit 1d1ee4a

Please sign in to comment.