From fb56a7595ad0395383a19383bee1f9bd86e71dbc Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 7 Aug 2020 09:41:17 +0200 Subject: [PATCH] util: use local ErrorLog() for GetCryptoPassphrase() instead of klog Signed-off-by: Niels de Vos --- internal/util/crypto.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/util/crypto.go b/internal/util/crypto.go index 3dfd0e326..fa2b2c2c2 100644 --- a/internal/util/crypto.go +++ b/internal/util/crypto.go @@ -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 }