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

[chore] apply fieldalignment #37312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Jan 19, 2025

Reordering a few fields to apply fieldalignment.

Comment on lines 220 to +221
OutputPaths []string `mapstructure:"output_paths"`
Level zapcore.Level `mapstructure:"level"`
Copy link
Member

@dmitryax dmitryax Jan 19, 2025

Choose a reason for hiding this comment

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

Is this done by a tool? Looks like it simply orders the fields by the size, but it doesn't matter in this case. It should be 32 bits in both cases. Curious if it can be configured to avoid changing fields if it's unnecessary?

I'm a bit concerned because it's technically a public API-breaking change for someone initializing it as Logs{level, paths} even if it's an anti-pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants