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

fix(ebpf): use debug error level instead of error #3985

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pkg/ebpf/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -1592,15 +1592,14 @@ func (t *Tracee) triggerMemDump(event trace.Event) []error {
// We want to use the policies of relevant to the triggering event
policies, err := policy.Snapshots().Get(event.PoliciesVersion)
if err != nil {
logger.Errorw("Error getting policies for print_mem_dump event", "error", err)
// For fallback, try to use latest polcies
logger.Debugw("Error getting policies for print_mem_dump event", "error", err)
// For fallback, try to use latest policies
policies, err = policy.Snapshots().GetLast()
if err != nil {
logger.Errorw("Error getting last snapshots policies for print_mem_dump event", "error", err)
// Last resort is to use the policies from the config
policies = t.config.Policies
return []error{err}
}
}

for it := policies.CreateAllIterator(); it.HasNext(); {
p := it.Next()
// This might break in the future if PrintMemDump will become a dependency of another event.
Expand Down
Loading