Skip to content

Commit

Permalink
opt: Remove error output, let invoker decide how to handle it
Browse files Browse the repository at this point in the history
Signed-off-by: J.J. Martzki <mars14850@gmail.com>
  • Loading branch information
Martzki committed Apr 16, 2024
1 parent 1a192e4 commit 4f9198b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/dmesg/dmesg.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package dmesg
import (
"bytes"
"errors"
"fmt"
"os"
"strconv"
"syscall"
Expand Down Expand Up @@ -133,10 +132,6 @@ func fetch(bufSize uint32, fetchRaw bool) (dmesg, error) {
}
})

if err != nil {
fmt.Fprintln(os.Stderr, "get err while fetching data from kernel:", err)
}

// EAGAIN means no more data, should be treated as normal.
if syscallError != nil && !errors.Is(syscallError, syscall.EAGAIN) {
err = syscallError
Expand Down

0 comments on commit 4f9198b

Please sign in to comment.