diff --git a/sysinfo/sysinfo_linux.go b/sysinfo/sysinfo_linux.go index 41fb0d2..8ba3ce4 100644 --- a/sysinfo/sysinfo_linux.go +++ b/sysinfo/sysinfo_linux.go @@ -75,7 +75,7 @@ func checkCgroupMem(cgMounts map[string]string, quiet bool) cgroupMemInfo { mountPoint, ok := cgMounts["memory"] if !ok { if !quiet { - logrus.Warnf("Your kernel does not support cgroup memory limit") + logrus.Warn("Your kernel does not support cgroup memory limit") } return cgroupMemInfo{} } @@ -90,15 +90,15 @@ func checkCgroupMem(cgMounts map[string]string, quiet bool) cgroupMemInfo { } oomKillDisable := cgroupEnabled(mountPoint, "memory.oom_control") if !quiet && !oomKillDisable { - logrus.Warnf("Your kernel does not support oom control.") + logrus.Warn("Your kernel does not support oom control.") } memorySwappiness := cgroupEnabled(mountPoint, "memory.swappiness") if !quiet && !memorySwappiness { - logrus.Warnf("Your kernel does not support memory swappiness.") + logrus.Warn("Your kernel does not support memory swappiness.") } kernelMemory := cgroupEnabled(mountPoint, "memory.kmem.limit_in_bytes") if !quiet && !kernelMemory { - logrus.Warnf("Your kernel does not support kernel memory limit.") + logrus.Warn("Your kernel does not support kernel memory limit.") } return cgroupMemInfo{ @@ -116,7 +116,7 @@ func checkCgroupCPU(cgMounts map[string]string, quiet bool) cgroupCPUInfo { mountPoint, ok := cgMounts["cpu"] if !ok { if !quiet { - logrus.Warnf("Unable to find cpu cgroup in mounts") + logrus.Warn("Unable to find cpu cgroup in mounts") } return cgroupCPUInfo{} } @@ -147,7 +147,7 @@ func checkCgroupBlkioInfo(cgMounts map[string]string, quiet bool) cgroupBlkioInf mountPoint, ok := cgMounts["blkio"] if !ok { if !quiet { - logrus.Warnf("Unable to find blkio cgroup in mounts") + logrus.Warn("Unable to find blkio cgroup in mounts") } return cgroupBlkioInfo{} } @@ -195,7 +195,7 @@ func checkCgroupCpusetInfo(cgMounts map[string]string, quiet bool) cgroupCpusetI mountPoint, ok := cgMounts["cpuset"] if !ok { if !quiet { - logrus.Warnf("Unable to find cpuset cgroup in mounts") + logrus.Warn("Unable to find cpuset cgroup in mounts") } return cgroupCpusetInfo{} }