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

Commit 2ae7357d authored by François Degros's avatar François Degros
Browse files

Tweak logs in CompressJob

Bug: 373263320
Test: Manual + look at logs
Flag: EXEMPT no functional change
Change-Id: I83a81198b88d2ae802e5cb0ea2b7a5871805f9af
parent c2d371dd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -115,11 +115,11 @@ final class CompressJob extends CopyJob {
                    mArchiveUri, ParcelFileDescriptor.MODE_WRITE_ONLY), UserId.DEFAULT_USER);
            ArchivesProvider.acquireArchive(getClient(mDstInfo), mDstInfo.derivedUri);
        } catch (FileNotFoundException e) {
            Log.e(TAG, "Failed to create dstInfo.", e);
            Log.e(TAG, "Cannot create document info", e);
            failureCount = mResourceUris.getItemCount();
            return false;
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to acquire the archive.", e);
            Log.e(TAG, "Cannot acquire archive", e);
            failureCount = mResourceUris.getItemCount();
            return false;
        }
@@ -132,7 +132,7 @@ final class CompressJob extends CopyJob {
        try {
            ArchivesProvider.releaseArchive(getClient(mDstInfo), mDstInfo.derivedUri);
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to release the archive.");
            Log.e(TAG, "Cannot release archive", e);
        }

        // Remove the archive file in case of an error.
@@ -141,7 +141,7 @@ final class CompressJob extends CopyJob {
                DocumentsContract.deleteDocument(wrap(getClient(mArchiveUri)), mArchiveUri);
            }
        } catch (RemoteException | FileNotFoundException e) {
            Log.w(TAG, "Failed to cleanup after compress error: " + mDstInfo.toString(), e);
            Log.w(TAG, "Cannot clean up after compress error: " + mDstInfo.toString(), e);
        }

        super.finish();