util: fix log level in OpenEncryptedVolume()

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-07-16 16:43:55 +05:30 committed by mergify[bot]
parent 812003eb45
commit 572f39d656

View File

@ -255,7 +255,7 @@ func OpenEncryptedVolume(ctx context.Context, devicePath, mapperFile, passphrase
DebugLog(ctx, "Opening device %s with LUKS on %s", devicePath, mapperFile)
_, stderr, err := LuksOpen(devicePath, mapperFile, passphrase)
if err != nil {
WarningLog(ctx, "failed to open LUKS device %q: %s", devicePath, stderr)
ErrorLog(ctx, "failed to open LUKS device %q: %s", devicePath, stderr)
}
return err