@@ -132,9 +132,7 @@ func injectDevices(pod *api.PodSandbox, ctr *api.Container, a *api.ContainerAdju
132132
133133 for _ , d := range devices {
134134 a .AddDevice (d .toNRI ())
135- if ! verbose {
136- log .Infof ("%s: injected device %q..." , containerName (pod , ctr ), d .Path )
137- }
135+ log .Infof ("%s: injected device %q..." , containerName (pod , ctr ), d .Path )
138136 }
139137
140138 return nil
@@ -178,9 +176,7 @@ func injectCDIDevices(pod *api.PodSandbox, ctr *api.Container, a *api.ContainerA
178176 Name : name ,
179177 },
180178 )
181- if ! verbose {
182- log .Infof ("%s: injected CDI device %q..." , containerName (pod , ctr ), name )
183- }
179+ log .Infof ("%s: injected CDI device %q..." , containerName (pod , ctr ), name )
184180 }
185181
186182 return nil
@@ -220,10 +216,8 @@ func injectMounts(pod *api.PodSandbox, ctr *api.Container, a *api.ContainerAdjus
220216
221217 for _ , m := range mounts {
222218 a .AddMount (m .toNRI ())
223- if ! verbose {
224- log .Infof ("%s: injected mount %q -> %q..." , containerName (pod , ctr ),
225- m .Source , m .Destination )
226- }
219+ log .Infof ("%s: injected mount %q -> %q..." , containerName (pod , ctr ),
220+ m .Source , m .Destination )
227221 }
228222
229223 return nil
@@ -262,9 +256,7 @@ func setIOPriority(pod *api.PodSandbox, ctr *api.Container, a *api.ContainerAdju
262256 }
263257
264258 a .SetLinuxIOPriority (priority .toNRI ())
265- if ! verbose {
266- log .Infof ("%s: injected I/O priority %+v..." , containerName (pod , ctr ), priority )
267- }
259+ log .Infof ("%s: injected I/O priority %+v..." , containerName (pod , ctr ), priority )
268260
269261 return nil
270262}
0 commit comments