Skip to content

fix: reduce the frequency of log printing #9909

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

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

Conversation

yuanchaoa
Copy link
Contributor

This PR is for:

  • Agent

Fixes <bug description, issue number or issue link>

Steps to reproduce the bug

Changes to fix the bug

Affected branches

  • main
  • 7.0
  • 6.6

Checklist

  • Added unit test to verify the fix.
  • Verified eBPF program runs successfully on linux 4.14.x.
  • Verified eBPF program runs successfully on linux 4.19.x.
  • Verified eBPF program runs successfully on linux 5.2.x.

@yuanchaoa yuanchaoa force-pushed the reduce-log-frequency branch 2 times, most recently from dd85642 to be9df4a Compare June 23, 2025 11:14
@yuanchaoa yuanchaoa force-pushed the reduce-log-frequency branch from be9df4a to 375251b Compare June 24, 2025 02:29
@yuanchaoa yuanchaoa requested review from rvql and sharang June 24, 2025 02:49
@yuanchaoa yuanchaoa marked this pull request as ready for review June 24, 2025 02:57
"Found the same cidr, please check {:?} and {:?}.",
item, old
);
invalid_cidr.push(item.ip)
Copy link
Contributor

Choose a reason for hiding this comment

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

这里判断一下 enabled,另外需要去重吗?

for item in &platform.interfaces {
let result = VInterface::try_from(item);
if result.is_ok() {
interfaces.push(Arc::new(result.unwrap()));
} else {
warn!("{:?}: {}", item, result.unwrap_err());
invalid_interfaces.push(item.id());
Copy link
Contributor

Choose a reason for hiding this comment

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

这两个也判断一下 enabled

Copy link
Contributor

Choose a reason for hiding this comment

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

其他的地方也类似

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