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

convert to structured logging using logrus #383 #385

Merged
merged 2 commits into from
May 4, 2017

Conversation

KeyboardNerd
Copy link
Contributor

No description provided.

return nil, err
}

if namespace != nil {
log.Debugf("detected namespace %s: %#v", name, namespace)
log.WithFields(log.Fields{"name": name, "namespace": fmt.Sprintf("%#v", namespace)}).Debug("detected namespace")
Copy link
Contributor

Choose a reason for hiding this comment

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

"namespace": namespace.Name

ts := now.Format("2006-01-02 15:04:05")
ms := now.Nanosecond() / 1000

data["Time"] = (fmt.Sprintf("%s.%06d", ts, ms))
Copy link
Contributor

Choose a reason for hiding this comment

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

parens are unnecessary

changed from capnslog to logrus for logging JSON structured message.

finished issue quay#383
@jzelinskie jzelinskie merged commit ee1702b into quay:master May 4, 2017
@Quentin-M
Copy link
Contributor

heck yeah~!

KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
convert to structured logging using logrus quay#383
@KeyboardNerd KeyboardNerd deleted the logrus branch March 11, 2018 18:50
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