Skip to content

Commit

Permalink
utils: Fix OVAL's log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M committed Nov 18, 2016
1 parent 9639846 commit 1faf27b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/oval/oval.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ var (

// FetchUpdate gets vulnerability updates from the OVAL definitions.
func (f *OvalFetcher) FetchUpdate(datastore database.Datastore) (resp updater.FetcherResponse, err error) {
log.Info("fetching %s vulnerabilities", f.OsInfo.DistName())
log.Infof("fetching %s vulnerabilities", f.OsInfo.DistName())

r, err := http.Get(f.OsInfo.OvalURI())
if err != nil {
Expand Down Expand Up @@ -247,8 +247,7 @@ func (f *OvalFetcher) ToFeatureVersions(possibilities [][]criterion) []database.
}

if osVersion == "" {
log.Warning("No OS version found for criterions")
log.Warning(criterions)
log.Warningf("No OS version found for criterions: %#v", criterions)
continue
}

Expand Down

0 comments on commit 1faf27b

Please sign in to comment.