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

hive: Reduce hive trace logs to debug level #32033

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Apr 17, 2024

The cilium-agent logs get spammed with this information in standard
environments, but these logs are not generally useful for users to
understand what's going on. The vast majority of them take microseconds
to run so they don't have any meaningful impact on startup.

Create a threshold to only report long-running tasks at info level,
while leaving most such reporting at debug level.

See also corresponding Hive library PR cilium/hive#2.

@joestringer joestringer requested a review from a team as a code owner April 17, 2024 18:04
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Apr 17, 2024
@joestringer
Copy link
Member Author

/test

The cilium-agent logs get spammed with this information in standard
environments, but these logs are not generally useful for users to
understand what's going on. The vast majority of them take microseconds
to run so they don't have any meaningful impact on startup.

Create a threshold to only report long-running tasks at info level,
while leaving most such reporting at debug level.

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer
Copy link
Member Author

/test

@joestringer
Copy link
Member Author

CI hit #32038, not a required workflow.

@joestringer joestringer marked this pull request as draft April 18, 2024 16:31
@joestringer
Copy link
Member Author

Probably it makes sense to align behind the proper implementation for the library and just update this to match, so we can be sure both trees are in sync? I'll iterate in cilium/hive#2 for now.

@joestringer
Copy link
Member Author

I didn't realize how far cilium/hive has diverged already. In the interests of providing the option for this PR to be backported, I think it makes sense to merge it as-is, even though the implementation is considerably different from cilium/hive#2.

@joestringer joestringer marked this pull request as ready for review April 22, 2024 20:02
@joestringer joestringer removed the request for review from dylandreimerink April 22, 2024 20:02
@joestringer joestringer added this pull request to the merge queue Apr 22, 2024
Merged via the queue into main with commit 5459e5a Apr 22, 2024
264 of 267 checks passed
@joestringer joestringer deleted the pr/joe/hive-log-verbosity branch April 22, 2024 20:10
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants