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

Commit 9fc85bf8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Tweak logs in CompressJob" into main

parents a4432668 2ae7357d
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();