Skip to content

Commit

Permalink
chore: improve logging for backups
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Nov 6, 2024
1 parent 98d6c46 commit 1f4dd10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal class RestoreBackupUseCaseImpl(
}
}
.fold({ error ->
kaliumLogger.e("$TAG Failed to restore the backup, reason: ${error.failure.cause}")
kaliumLogger.e("$TAG Failed to restore the backup, reason: ${error.failure}")
error
}, {
kaliumLogger.i("$TAG Backup restored successfully")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ internal class RestoreWebBackupUseCaseImpl(
} else {
Either.Left(IncompatibleBackup("invoke: The provided backup format is not supported"))
}.fold({ error ->
kaliumLogger.e("$TAG Failed to restore the backup, reason: ${error.cause}")
kaliumLogger.e("$TAG Failed to restore the backup, reason: ${error}")
RestoreBackupResult.Failure(error)
}, {
kaliumLogger.i("$TAG Successfully restored the backup")
Expand Down

0 comments on commit 1f4dd10

Please sign in to comment.