Skip to content

Commit

Permalink
[Auditbeat]: Cleanup a couple of log messages formatters (elastic#40358)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus authored Jul 25, 2024
1 parent 2721414 commit f1df291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (s prvdr) SyncDB(ev *beat.Event, pid uint32) error {
}
if waited >= maxWaitLimit {
e := fmt.Errorf("process %v was not seen after %v", pid, waited)
s.logger.Warnf("%w", e)
s.logger.Warnf("%v", e)
combinedWait = combinedWait + waited
return e
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (s prvdr) SyncDB(ev *beat.Event, pid uint32) error {
pe.Env = proc_info.Env
pe.Filename = proc_info.Filename
} else {
s.logger.Warnf("couldn't get process info from proc for pid %v: %w", pid, err)
s.logger.Warnf("couldn't get process info from proc for pid %v: %v", pid, err)
// If process info couldn't be taken from procfs, populate with as much info as
// possible from the event
pe.PIDs.Tgid = pid
Expand Down

0 comments on commit f1df291

Please sign in to comment.