Skip to content

Commit

Permalink
correct warn message in ByDistroCpe (#274)
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <[email protected]>
  • Loading branch information
noqcks authored Jan 9, 2024
1 parent 5b99f37 commit 45b82ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xeol/search/purl.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ByDistroCpe(store eol.Provider, distro *linux.Release, eolMatchDate time.Ti
return match.Match{}, "", nil
}

log.Debugf("matching distro %s with version %s", distro.Name, version)
log.Debugf("attempting to match distro %s with version %s", distro.Name, version)
cycle, err := cycleMatch(version, cycles, eolMatchDate)
if err != nil {
log.Warnf("failed to match cycle for distro %s: %v", distro.Name, err)
Expand All @@ -65,7 +65,7 @@ func ByDistroCpe(store eol.Provider, distro *linux.Release, eolMatchDate time.Ti
}, distroCPE, nil
}

log.Warnf("failed to match cycle for distro %s: %v", distro.Name, err)
log.Debugf("matched cycle for distro %s: %v", distro.Name, version)
return match.Match{}, "", nil
}

Expand Down

0 comments on commit 45b82ba

Please sign in to comment.