@@ -25,7 +25,7 @@ type IOLimiterV2 struct {
25
25
26
26
func NewIOLimiterV2 (writeBytesPerSecond , readBytesPerSecond , writeIOPs , readIOPs int64 ) (* IOLimiterV2 , error ) {
27
27
devices := buildDevices ()
28
- log .WithField ("devices" , devices ).Info ("io limiting devices" )
28
+ log .WithField ("devices" , devices ).Debug ("io limiting devices" )
29
29
return & IOLimiterV2 {
30
30
limits : buildV2Limits (writeBytesPerSecond , readBytesPerSecond , writeIOPs , readIOPs , devices ),
31
31
@@ -57,7 +57,7 @@ func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) er
57
57
}()
58
58
59
59
go func () {
60
- log .WithField ("cgroupPath" , cgroupPath ).Info ("starting io limiting" )
60
+ log .WithField ("cgroupPath" , cgroupPath ).Debug ("starting io limiting" )
61
61
62
62
_ , err := v2 .NewManager (basePath , filepath .Join ("/" , cgroupPath ), c .limits )
63
63
if err != nil {
@@ -79,7 +79,7 @@ func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) er
79
79
if err != nil {
80
80
log .WithError (err ).WithField ("cgroupPath" , cgroupPath ).Error ("cannot write IO limits" )
81
81
}
82
- log .WithField ("cgroupPath" , cgroupPath ).Info ("stopping io limiting" )
82
+ log .WithField ("cgroupPath" , cgroupPath ).Debug ("stopping io limiting" )
83
83
return
84
84
}
85
85
}
@@ -106,19 +106,19 @@ func buildV2Limits(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs
106
106
for _ , device := range devices {
107
107
majmin := strings .Split (device , ":" )
108
108
if len (majmin ) != 2 {
109
- log .WithField ("device" , device ).Info ("invalid device" )
109
+ log .WithField ("device" , device ).Error ("invalid device" )
110
110
continue
111
111
}
112
112
113
113
major , err := strconv .ParseInt (majmin [0 ], 10 , 64 )
114
114
if err != nil {
115
- log .WithError (err ).Info ("invalid major device" )
115
+ log .WithError (err ).Error ("invalid major device" )
116
116
continue
117
117
}
118
118
119
119
minor , err := strconv .ParseInt (majmin [1 ], 10 , 64 )
120
120
if err != nil {
121
- log .WithError (err ).Info ("invalid minor device" )
121
+ log .WithError (err ).Error ("invalid minor device" )
122
122
continue
123
123
}
124
124
@@ -139,7 +139,7 @@ func buildV2Limits(writeBytesPerSecond, readBytesPerSecond, writeIOPs, readIOPs
139
139
}
140
140
}
141
141
142
- log .WithField ("resources" , resources ).Info ("cgroups v2 limits" )
142
+ log .WithField ("resources" , resources ).Debug ("cgroups v2 limits" )
143
143
144
144
return resources
145
145
}
0 commit comments