Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1aeba278 authored by Thomas Makin's avatar Thomas Makin Committed by Michael Bestas
Browse files

ExifInterface: do not spam stacktrace on invalid format

If we scan a directory with "unsupported" files, we get spam stacktraces.
This is Debug at best.

Change-Id: I18e0b10ad735c9ce5696a2ad79f7551203c39d92
parent 24963869
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2037,7 +2037,7 @@ public class ExifInterface {
            // Ignore exceptions in order to keep the compatibility with the old versions of
            // Ignore exceptions in order to keep the compatibility with the old versions of
            // ExifInterface.
            // ExifInterface.
            mIsSupportedFile = false;
            mIsSupportedFile = false;
            Log.w(TAG, "Invalid image: ExifInterface got an unsupported image format file"
            Log.d(TAG, "Invalid image: ExifInterface got an unsupported image format file"
                    + "(ExifInterface supports JPEG and some RAW image formats only) "
                    + "(ExifInterface supports JPEG and some RAW image formats only) "
                    + "or a corrupted JPEG file to ExifInterface.", e);
                    + "or a corrupted JPEG file to ExifInterface.", e);
        } finally {
        } finally {