Reduce log severity for transcode fd conversion failure

Converting a transcode fd to the original fd might fail for the more
common reason that the fd is already original.

Now, we log as DEBUG instead of WARNING

Test: m
Bug: 186672282
Change-Id: Ifd0b3cef901ae1c2f467ace06dca590dff8ffb04
This commit is contained in:
Zim
2021-05-04 10:52:32 +01:00
committed by Zimuzo Ezeozue
parent eebbd44aef
commit 741868b354

View File

@@ -1470,7 +1470,7 @@ public final class FileUtils {
return MediaStore.getOriginalMediaFormatFileDescriptor(context,
ParcelFileDescriptor.dup(fd));
} catch (Exception e) {
Log.w(TAG, "Failed to convert to modern format file descriptor", e);
Log.d(TAG, "Failed to convert to modern format file descriptor", e);
return null;
}
}