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

log: Avoid using unsupported field by logrus #589

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

ktock
Copy link
Member

@ktock ktock commented Jan 17, 2022

logrus doesn't support fields with functions which leads to meaningless log messages.

e.g.

Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() (io.ReadCloser, error)

This commit eliminates such fields to avoid meaningless logs.

logrus doesn't support fields which contains functions and such fields lead to
meaningless log messages.
This commit eliminates such fields to avoid meaningless logs.

Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock ktock requested a review from AkihiroSuda January 17, 2022 14:01
@AkihiroSuda AkihiroSuda merged commit 5d7d316 into containerd:main Jan 17, 2022
@ktock ktock deleted the no-unsupported-log branch January 17, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants