Skip to content

Commit a878e1f

Browse files
authored
cgroup: remove redundant log (#52611) (#58389)
close #52612
1 parent ef8e435 commit a878e1f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/util/cgroup/cgroup_cpu_linux.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
package cgroup
1818

1919
import (
20-
"fmt"
2120
"math"
2221
"os"
2322
"runtime"
2423
"strings"
2524

2625
"github.com/pingcap/errors"
2726
"github.com/pingcap/failpoint"
28-
"github.com/pingcap/log"
2927
)
3028

3129
// GetCgroupCPU returns the CPU usage and quota for the current cgroup.
@@ -93,7 +91,6 @@ func inContainer(path string) bool {
9391
// see details from https://man7.org/linux/man-pages/man5/proc.5.html
9492
// TODO: enhance this check, as overlay is not the only storage driver for container.
9593
if len(v) > 8 && v[4] == "/" && v[8] == "overlay" {
96-
log.Info(fmt.Sprintf("TiDB runs in a container, mount info: %s", line))
9794
return true
9895
}
9996
}

0 commit comments

Comments
 (0)