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

Add logging #371

Merged
merged 2 commits into from
Apr 25, 2017
Merged

Add logging #371

merged 2 commits into from
Apr 25, 2017

Conversation

caipre
Copy link
Contributor

@caipre caipre commented Apr 25, 2017

These changes add some logging information that was useful to me when working with clair.

Copy link
Contributor

@jzelinskie jzelinskie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@jzelinskie jzelinskie merged commit ce4f832 into quay:master Apr 25, 2017
@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing the prefix? the format is used everywhere else.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally, we'd like to switch to logrus and use structured messages though!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to make a follow up PR doing that.

@caipre caipre deleted the add-logging branch April 26, 2017 13:21
KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants