Skip to content

Commit

Permalink
WIP: enable backupmonitor logging
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Oct 11, 2024
1 parent 166c272 commit 8602fbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ internal class BackupRestoreTest : SeedvaultLargeTest() {

@Test
fun `backup and restore applications`() {
launchStoppedApps()
launchBackupActivity()

if (!keyManager.hasBackupKey()) {
Expand All @@ -34,6 +33,9 @@ internal class BackupRestoreTest : SeedvaultLargeTest() {
changeBackupLocation()
}

launchStoppedApps()
launchBackupActivity()

val backupResult = performBackup()
assertValidBackupMetadata(backupResult)

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/stevesoltys/seedvault/BackupMonitor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ open class BackupMonitor : IBackupManagerMonitor.Stub() {
val preflightResult = bundle.getLong(EXTRA_LOG_PREFLIGHT_ERROR, -1)
Log.w(TAG, "Pre-flight error from $packageName: $preflightResult")
}
Log.e(TAG, "$packageName")
Log.e(TAG, " category: $category")
Log.e(TAG, " id: $id")
if (!Log.isLoggable(TAG, DEBUG)) return
Log.d(TAG, "ID: $id")
Log.d(TAG, "CATEGORY: $category")
Expand Down

0 comments on commit 8602fbd

Please sign in to comment.