From 312a13a9130a3c9e8f027dd2e4bf46ff7aa5ea6b Mon Sep 17 00:00:00 2001 From: Steve Soltys Date: Tue, 17 Oct 2017 23:39:30 -0400 Subject: [PATCH] Clean up logging in ContentProviderBackupComponent --- .../backup/ContentProviderBackupComponent.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/backup/ContentProviderBackupComponent.java b/app/src/main/java/com/stevesoltys/backup/transport/component/provider/backup/ContentProviderBackupComponent.java index 9d26d7bc..d406b21a 100644 --- a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/backup/ContentProviderBackupComponent.java +++ b/app/src/main/java/com/stevesoltys/backup/transport/component/provider/backup/ContentProviderBackupComponent.java @@ -101,7 +101,7 @@ public class ContentProviderBackupComponent implements BackupComponent { return transferIncrementalBackupData(backupDataInput); } catch (Exception ex) { - Log.v(TAG, "Error reading backup input: ", ex); + Log.e(TAG, "Error reading backup input: ", ex); return TRANSPORT_ERROR; } } @@ -153,8 +153,6 @@ public class ContentProviderBackupComponent implements BackupComponent { return TRANSPORT_ERROR; } - Log.i(TAG, "performFullBackup : " + targetPackage); - try { initializeBackupState(); backupState.setPackageIndex(backupState.getPackageIndex() + 1); @@ -168,7 +166,7 @@ public class ContentProviderBackupComponent implements BackupComponent { backupState.getOutputStream().putNextEntry(zipEntry); } catch (Exception ex) { - Log.e(TAG, "Error creating backup file for " + backupState.getPackageName() + ": ", ex); + Log.e(TAG, "Error creating backup file for " + targetPackage.packageName + ": ", ex); clearBackupState(true); return TRANSPORT_ERROR; @@ -188,10 +186,6 @@ public class ContentProviderBackupComponent implements BackupComponent { result = TRANSPORT_QUOTA_EXCEEDED; } - if (result != TRANSPORT_OK) { - Log.v(TAG, "Declining backup of size " + size); - } - return result; } @@ -220,8 +214,6 @@ public class ContentProviderBackupComponent implements BackupComponent { Log.e(TAG, "Error handling backup data for " + backupState.getPackageName() + ": ", ex); return TRANSPORT_ERROR; } - - Log.v(TAG, " stored " + numBytes + " of data"); return TRANSPORT_OK; }