Skip to content

Commit 08dea12

Browse files
aledbfroboquat
authored andcommitted
[ws-daemon] Configure plugins log level to Debug
1 parent f842bc5 commit 08dea12

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

components/ws-daemon/pkg/cgroup/plugin_fuse_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (c *FuseDeviceEnablerV2) Type() Version { return Version2 }
2525

2626
func (c *FuseDeviceEnablerV2) Apply(ctx context.Context, basePath, cgroupPath string) error {
2727
fullCgroupPath := filepath.Join(basePath, cgroupPath)
28-
log.WithField("cgroupPath", fullCgroupPath).Info("configuring devices")
28+
log.WithField("cgroupPath", fullCgroupPath).Debug("configuring devices")
2929

3030
cgroupFD, err := unix.Open(fullCgroupPath, unix.O_DIRECTORY|unix.O_RDONLY|unix.O_CLOEXEC, 0600)
3131
if err != nil {

components/ws-daemon/pkg/cgroup/plugin_iolimit_v2.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type IOLimiterV2 struct {
2525

2626
func NewIOLimiterV2(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs int64) (*IOLimiterV2, error) {
2727
devices := buildDevices()
28-
log.WithField("devices", devices).Info("io limiting devices")
28+
log.WithField("devices", devices).Debug("io limiting devices")
2929
return &IOLimiterV2{
3030
limits: buildV2Limits(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs, devices),
3131

@@ -57,7 +57,7 @@ func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) er
5757
}()
5858

5959
go func() {
60-
log.WithField("cgroupPath", cgroupPath).Info("starting io limiting")
60+
log.WithField("cgroupPath", cgroupPath).Debug("starting io limiting")
6161

6262
_, err := v2.NewManager(basePath, filepath.Join("/", cgroupPath), c.limits)
6363
if err != nil {
@@ -79,7 +79,7 @@ func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) er
7979
if err != nil {
8080
log.WithError(err).WithField("cgroupPath", cgroupPath).Error("cannot write IO limits")
8181
}
82-
log.WithField("cgroupPath", cgroupPath).Info("stopping io limiting")
82+
log.WithField("cgroupPath", cgroupPath).Debug("stopping io limiting")
8383
return
8484
}
8585
}
@@ -106,19 +106,19 @@ func buildV2Limits(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs
106106
for _, device := range devices {
107107
majmin := strings.Split(device, ":")
108108
if len(majmin) != 2 {
109-
log.WithField("device", device).Info("invalid device")
109+
log.WithField("device", device).Error("invalid device")
110110
continue
111111
}
112112

113113
major, err := strconv.ParseInt(majmin[0], 10, 64)
114114
if err != nil {
115-
log.WithError(err).Info("invalid major device")
115+
log.WithError(err).Error("invalid major device")
116116
continue
117117
}
118118

119119
minor, err := strconv.ParseInt(majmin[1], 10, 64)
120120
if err != nil {
121-
log.WithError(err).Info("invalid minor device")
121+
log.WithError(err).Error("invalid minor device")
122122
continue
123123
}
124124

@@ -139,7 +139,7 @@ func buildV2Limits(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs
139139
}
140140
}
141141

142-
log.WithField("resources", resources).Info("cgroups v2 limits")
142+
log.WithField("resources", resources).Debug("cgroups v2 limits")
143143

144144
return resources
145145
}

0 commit comments

Comments
 (0)