mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
fix: reduce warn levels to debug for non-actionable errors (#3645)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
+2
-2
@@ -38,7 +38,7 @@ func (p *Package) SetID() {
|
||||
id, err := artifact.IDByHash(p)
|
||||
if err != nil {
|
||||
// TODO: what to do in this case?
|
||||
log.Warnf("unable to get fingerprint of package=%s@%s: %+v", p.Name, p.Version, err)
|
||||
log.Debugf("unable to get fingerprint of package=%s@%s: %+v", p.Name, p.Version, err)
|
||||
return
|
||||
}
|
||||
p.id = id
|
||||
@@ -59,7 +59,7 @@ func (p *Package) merge(other Package) error {
|
||||
}
|
||||
|
||||
if p.PURL != other.PURL {
|
||||
log.Warnf("merging packages have with different pURLs: %q=%q vs %q=%q", p.id, p.PURL, other.id, other.PURL)
|
||||
log.Debugf("merging packages have with different pURLs: %q=%q vs %q=%q", p.id, p.PURL, other.id, other.PURL)
|
||||
}
|
||||
|
||||
p.Locations.Add(other.Locations.ToSlice()...)
|
||||
|
||||
Reference in New Issue
Block a user