Skip to content

Commit 3b533a0

Browse files
committed
Make sure to log errors from DaemonInfo
1 parent 49f9bc8 commit 3b533a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/drivers/kic/oci/info.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,11 @@ func dockerSystemInfo() (dockerSysInfo, error) {
252252
var ds dockerSysInfo
253253
rawJSON, err := dockerInfoGetter()
254254
if err != nil {
255+
klog.Warningf("docker info: %v", err)
255256
return ds, errors.Wrap(err, "docker system info")
256257
}
257258
if err := json.Unmarshal([]byte(strings.TrimSpace(rawJSON)), &ds); err != nil {
259+
klog.Warningf("unmarshal docker info: %v", err)
258260
return ds, errors.Wrapf(err, "unmarshal docker system info")
259261
}
260262

@@ -272,10 +274,12 @@ func podmanSystemInfo() (podmanSysInfo, error) {
272274
var ps podmanSysInfo
273275
rawJSON, err := podmanInfoGetter()
274276
if err != nil {
277+
klog.Warningf("podman info: %v", err)
275278
return ps, errors.Wrap(err, "podman system info")
276279
}
277280

278281
if err := json.Unmarshal([]byte(strings.TrimSpace(rawJSON)), &ps); err != nil {
282+
klog.Warningf("unmarshal podman info: %v", err)
279283
return ps, errors.Wrapf(err, "unmarshal podman system info")
280284
}
281285
klog.Infof("podman info: %+v", ps)

0 commit comments

Comments
 (0)