Skip to content

Conversation

@samuelkarp
Copy link
Member

Fixes #7941

Copy link
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

LGTM

"-id", b.bundle.ID,
"-bundle", b.bundle.Path,
}
switch logrus.GetLevel() {
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to check the context logger, like log.G(ctx).GetLevel()? It may fallback to the global level most of the case though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did check that this behavior worked, so it does seem that querying the global level works. Note that the logic here is the same as what's already used in binary.Start().

@kzys kzys merged commit f82ae8a into containerd:main Jan 11, 2023
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.

Unnecessary log message saying "cleanup warnings" when there seems to be none

3 participants