From f1df29194528d20be58e5be25a7362abfa3d93b7 Mon Sep 17 00:00:00 2001 From: Aleksandr Maus Date: Thu, 25 Jul 2024 18:48:21 -0400 Subject: [PATCH] [Auditbeat]: Cleanup a couple of log messages formatters (#40358) --- .../sessionmd/provider/ebpf_provider/ebpf_provider.go | 2 +- .../sessionmd/provider/procfs_provider/procfs_provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/auditbeat/processors/sessionmd/provider/ebpf_provider/ebpf_provider.go b/x-pack/auditbeat/processors/sessionmd/provider/ebpf_provider/ebpf_provider.go index 8c08ae199a7..31220465dfe 100644 --- a/x-pack/auditbeat/processors/sessionmd/provider/ebpf_provider/ebpf_provider.go +++ b/x-pack/auditbeat/processors/sessionmd/provider/ebpf_provider/ebpf_provider.go @@ -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 } diff --git a/x-pack/auditbeat/processors/sessionmd/provider/procfs_provider/procfs_provider.go b/x-pack/auditbeat/processors/sessionmd/provider/procfs_provider/procfs_provider.go index 1578e89f915..4380bc2ccae 100644 --- a/x-pack/auditbeat/processors/sessionmd/provider/procfs_provider/procfs_provider.go +++ b/x-pack/auditbeat/processors/sessionmd/provider/procfs_provider/procfs_provider.go @@ -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