Skip to content

Commit

Permalink
cgroup: remove redundant log (#52611)
Browse files Browse the repository at this point in the history
close #52612
  • Loading branch information
Defined2014 committed Apr 15, 2024
1 parent 3d82fc5 commit cd9c676
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/util/cgroup/cgroup_cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
package cgroup

import (
"fmt"
"math"
"os"
"runtime"
"strings"

"github.com/pingcap/errors"
"github.com/pingcap/failpoint"
"github.com/pingcap/log"
)

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

0 comments on commit cd9c676

Please sign in to comment.