diff --git a/ebpf/gmon.go b/ebpf/gmon.go index 9bac72e..d528f34 100644 --- a/ebpf/gmon.go +++ b/ebpf/gmon.go @@ -76,7 +76,7 @@ func Run(ctx context.Context, config Config) (func(), error) { } } if err := objs.Close(); err != nil { - slog.Warn("Failed to close bpf objects: %s", err) + slog.Warn("Failed to close bpf objects", slog.Any("error", err)) } }, nil }