util: use ErrorLog for context based logging

use ErrorLog for context based logging for
more detailed logging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-08-11 16:46:09 +05:30
committed by mergify[bot]
parent 7c24f4d597
commit 8c32045c4e
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ func GetCryptoPassphrase(ctx context.Context, volumeID string, kms EncryptionKMS
}
return passphrase, nil
}
ErrorLogMsg(Log(ctx, "failed to get encryption passphrase for %s: %s"), volumeID, err)
ErrorLog(ctx, "failed to get encryption passphrase for %s: %s", volumeID, err)
return "", err
}