Skip to content

Commit

Permalink
Log only lines with found flags
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-abtasty committed Apr 13, 2021
1 parent c29eddb commit 2240bcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ func AnalyzeCode() error {
}

for _, r := range results {
log.Printf("Scanned file %s and found %d flag usages", r.File, len(r.Results))
if len(results) > 0 {
log.Printf("Scanned file %s and found %d flag usages", r.File, len(r.Results))
}
}

err = api.SendFlagsToAPI(results, envID)
Expand Down

0 comments on commit 2240bcf

Please sign in to comment.