From 741868b354d308e916d4afba41bf8885f09c6248 Mon Sep 17 00:00:00 2001 From: Zim Date: Tue, 4 May 2021 10:52:32 +0100 Subject: [PATCH] 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 --- core/java/android/os/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/os/FileUtils.java b/core/java/android/os/FileUtils.java index a06a8577a56ac..f3e0ce9cd19e8 100644 --- a/core/java/android/os/FileUtils.java +++ b/core/java/android/os/FileUtils.java @@ -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; } }