util: use local ErrorLog() for GetCryptoPassphrase() instead of klog

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-08-07 09:41:17 +02:00 committed by mergify[bot]
parent 61924adf57
commit fb56a7595a

View File

@ -27,8 +27,6 @@ import (
"strings"
"crypto/rand"
klog "k8s.io/klog/v2"
)
const (
@ -160,7 +158,7 @@ func GetCryptoPassphrase(ctx context.Context, volumeID string, kms EncryptionKMS
}
return passphrase, nil
}
klog.Errorf(Log(ctx, "failed to get encryption passphrase for %s: %s"), volumeID, err)
ErrorLog(Log(ctx, "failed to get encryption passphrase for %s: %s"), volumeID, err)
return "", err
}