Skip to content

Commit

Permalink
chore: log unsupported package qualifier as debug (#1340)
Browse files Browse the repository at this point in the history
Logs unsupported package qualifiers at `debug` level rather than
`warning`.  The message is only meant to convey that there are new
qualifiers available in grype-db that the version of grype being used
cannot take advantage of to improve matching behavior; however, the
warning is confusing to users and may make it seem like grype is in a
broken state.

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
  • Loading branch information
westonsteimel committed Jun 8, 2023
1 parent 8447112 commit e8143f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grype/db/v5/pkg/qualifier/from_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func FromJSON(data []byte) ([]Qualifier, error) {
}
qualifiers = append(qualifiers, q)
default:
log.Warn("Skipping unsupported package qualifier: %s", k)
log.Debug("Skipping unsupported package qualifier: %s", k)
continue
}
}
Expand Down

0 comments on commit e8143f2

Please sign in to comment.