Merge "Add logs to IOExceptions during adb backup" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
786354a53f
@@ -136,7 +136,9 @@ public final class Backup {
|
||||
if (fd != null) {
|
||||
try {
|
||||
fd.close();
|
||||
} catch (IOException e) {}
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "IO error closing output for backup: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4535,7 +4535,7 @@ public class BackupManagerService implements BackupManagerServiceInterface {
|
||||
}
|
||||
mOutputFile.close();
|
||||
} catch (IOException e) {
|
||||
/* nothing we can do about this */
|
||||
Slog.e(TAG, "IO error closing adb backup file: " + e.getMessage());
|
||||
}
|
||||
synchronized (mLatch) {
|
||||
mLatch.set(true);
|
||||
@@ -10112,7 +10112,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
|
||||
try {
|
||||
fd.close();
|
||||
} catch (IOException e) {
|
||||
// just eat it
|
||||
Slog.e(TAG, "IO error closing output for adb backup: " + e.getMessage());
|
||||
}
|
||||
Binder.restoreCallingIdentity(oldId);
|
||||
Slog.d(TAG, "Adb backup processing complete.");
|
||||
|
||||
@@ -2486,7 +2486,7 @@ public class RefactoredBackupManagerService implements BackupManagerServiceInter
|
||||
try {
|
||||
fd.close();
|
||||
} catch (IOException e) {
|
||||
// just eat it
|
||||
Slog.e(TAG, "IO error closing output for adb backup: " + e.getMessage());
|
||||
}
|
||||
Binder.restoreCallingIdentity(oldId);
|
||||
Slog.d(TAG, "Adb backup processing complete.");
|
||||
|
||||
@@ -459,7 +459,7 @@ public class PerformAdbBackupTask extends FullBackupTask implements BackupRestor
|
||||
}
|
||||
mOutputFile.close();
|
||||
} catch (IOException e) {
|
||||
/* nothing we can do about this */
|
||||
Slog.e(TAG, "IO error closing adb backup file: " + e.getMessage());
|
||||
}
|
||||
synchronized (mLatch) {
|
||||
mLatch.set(true);
|
||||
|
||||
Reference in New Issue
Block a user