From 5febf78f7d140c34704c79c345d9a392b16e7031 Mon Sep 17 00:00:00 2001 From: Shishir Mahajan Date: Tue, 5 Jan 2021 16:15:54 -0800 Subject: [PATCH] Fix review comments. --- containerd/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containerd/driver.go b/containerd/driver.go index 873640b..d8ac377 100644 --- a/containerd/driver.go +++ b/containerd/driver.go @@ -309,7 +309,7 @@ func (d *Driver) buildFingerprint() *drivers.Fingerprint { isRunning, err := d.isContainerdRunning() if err != nil || !isRunning { if err != nil { - d.logger.Error(fmt.Sprintf("Error in buildFingerprint(): failed to get containerd status: %v\n", err)) + d.logger.Error("Error in buildFingerprint(): failed to get containerd status", "error", err) } fp.Health = drivers.HealthStateUnhealthy fp.HealthDescription = "Unhealthy" @@ -319,7 +319,7 @@ func (d *Driver) buildFingerprint() *drivers.Fingerprint { // Get containerd version version, err := d.getContainerdVersion() if err != nil { - d.logger.Warn(fmt.Sprintf("Error in buildFingerprint(): failed to get containerd version: %v\n", err)) + d.logger.Warn("Error in buildFingerprint(): failed to get containerd version:", "error", err) return fp }