Skip to content

Commit

Permalink
cmd: use logrus to print error
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Oct 11, 2024
1 parent 71d5ee0 commit 3d57560
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/podman/early_init_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"os"
"syscall"

"github.com/sirupsen/logrus"
)

func setRLimits() error {
Expand All @@ -25,7 +26,7 @@ func setUMask() {

func earlyInitHook() {
if err := setRLimits(); err != nil {
fmt.Fprintf(os.Stderr, "Failed to set rlimits: %s\n", err.Error())
logrus.Errorf("Failed to set rlimits: %v", err)
}

setUMask()
Expand Down

0 comments on commit 3d57560

Please sign in to comment.