Skip to content

Commit

Permalink
Merge pull request #87 from austbot/master
Browse files Browse the repository at this point in the history
Remove non JSON logging when JSON variable is true
  • Loading branch information
hashmap authored Mar 7, 2018
2 parents d3b6b51 + bbb2d5d commit 68bacf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func main() {
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to analyze using API v%d: %s\n", ver, err)
} else {
fmt.Printf("Got results from Clair API v%d\n", ver)
if !conf.JSONOutput {
fmt.Printf("Got results from Clair API v%d\n", ver)
}
break
}
}
Expand Down

0 comments on commit 68bacf5

Please sign in to comment.