Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct warn message in ByDistroCpe #274

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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