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

toml decoding: report unknown keys #1507

Merged
merged 1 commit into from Mar 28, 2022
Merged

Conversation

vrothberg
Copy link
Member

Despite the desire in #1284 to report unknown-key errors (e.g., for
typos), only log them on the debug level. We have made rather bad
experiences with containers.conf which initially logged these errors
on the warning level which caused an immense noise for users.

The underlying problem is that not all tools are updated in sync,
especially for non-{CentOS,Fedora,RHEL} distributions. Config files
changes for tools with an updated conf will hence cause noise for others
etc.

However, logging these error on the debug level will still improve user
experience and be especially helpful in analyzing users issues.

Fixes: #1284
Signed-off-by: Valentin Rothberg vrothberg@redhat.com

@mtrmac @rhatdan PTAL

@rhatdan
Copy link
Member

rhatdan commented Mar 25, 2022

LGTM

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

Feel free to merge as is or after tweaking the working, without another review by me.

pkg/sysregistriesv2/shortnames.go Outdated Show resolved Hide resolved
Despite the desire in containers#1284 to report unknown-key errors (e.g., for
typos), only log them on the debug level.  We have made rather bad
experiences with containers.conf which initially logged these errors
on the warning level which caused an immense noise for users.

The underlying problem is that not all tools are updated in sync,
especially for non-{CentOS,Fedora,RHEL} distributions.  Config files
changes for tools with an updated conf will hence cause noise for others
etc.

However, logging these error on the debug level will still improve user
experience and be especially helpful in analyzing users issues.

Fixes: containers#1284
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks again!

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.

Make sure unknown keys in config files (typos, keys for future versions) are rejected
3 participants