Merge pull request #371 from caipre/add-logging

Add logging
This commit is contained in:
Jimmy Zelinskie 2017-04-25 15:48:59 -04:00 committed by GitHub
commit ce4f8327ec
2 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ func fetch(datastore database.Datastore) (bool, []database.Vulnerability, map[st
}
responseC <- &response
log.Infof("finished fetching %s", name)
}(n, u)
}

View File

@ -210,7 +210,7 @@ func detectFeatureVersions(name string, files tarutil.FilesMap, namespace *datab
continue
}
log.Warningf("layer %s: Layer's namespace is unknown but non-namespaced features have been detected", name)
log.Warningf("Namespace unknown for feature %s %s, in layer %s", feature.Feature.Name, feature.Version, name)
err = ErrUnsupported
return
}