mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore(backup/restore): Also pass log to Kermit
This commit is contained in:
parent
7f872e64f9
commit
f2a7ddb6eb
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ import androidx.work.OutOfQuotaPolicy
|
|||
import androidx.work.WorkManager
|
||||
import androidx.work.WorkerParameters
|
||||
import androidx.work.workDataOf
|
||||
import co.touchlab.kermit.Logger
|
||||
import eu.kanade.tachiyomi.data.backup.BackupConst
|
||||
import eu.kanade.tachiyomi.data.backup.BackupNotifier
|
||||
import eu.kanade.tachiyomi.data.notification.Notifications
|
||||
|
@ -53,6 +54,7 @@ class BackupRestoreJob(val context: Context, workerParams: WorkerParameters) : C
|
|||
notifier.showRestoreError(context.getString(MR.strings.restoring_backup_canceled))
|
||||
Result.success()
|
||||
} else {
|
||||
Logger.e(e) { "Failed to restore backup" }
|
||||
restorer.writeErrorLog()
|
||||
notifier.showRestoreError(e.message)
|
||||
Result.failure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue