mirror of
https://github.com/containers/podman.git
synced 2025-10-14 17:55:51 +08:00
cmd: use logrus to print error
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -2,8 +2,9 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"syscall"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func setRLimits() error {
|
||||
@ -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()
|
||||
|
Reference in New Issue
Block a user