From 1637ef730350357df3d22958942b0567108a9027 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 12 May 2015 18:02:30 +0800 Subject: [PATCH] Remove redundant warning Signed-off-by: Qiang Huang --- sysinfo/sysinfo.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sysinfo/sysinfo.go b/sysinfo/sysinfo.go index e6d5d84..d28eedf 100644 --- a/sysinfo/sysinfo.go +++ b/sysinfo/sysinfo.go @@ -52,13 +52,11 @@ func New(quiet bool) *SysInfo { } } else { _, err := ioutil.ReadFile(path.Join(cgroupCpuMountpoint, "cpu.cfs_period_us")) - logrus.Warnf("%s", cgroupCpuMountpoint) sysInfo.CpuCfsPeriod = err == nil if !sysInfo.CpuCfsPeriod && !quiet { - logrus.Warnf("WARING: Your kernel does not support cgroup cfs period") + logrus.Warn("Your kernel does not support cgroup cfs period") } _, err = ioutil.ReadFile(path.Join(cgroupCpuMountpoint, "cpu.cfs_quota_us")) - logrus.Warnf("%s", cgroupCpuMountpoint) sysInfo.CpuCfsQuota = err == nil if !sysInfo.CpuCfsQuota && !quiet { logrus.Warn("Your kernel does not support cgroup cfs quotas")