Fix review comments.

This commit is contained in:
Shishir Mahajan 2021-01-05 16:15:54 -08:00
parent ffb973ea72
commit 5febf78f7d
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A

View File

@ -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
}