Fix LogPriority in HistoryRepositoryImpl (#7173)

This commit is contained in:
FourTOne5 2022-05-20 18:05:23 +06:00 committed by GitHub
parent 9a75232ca4
commit 28be423e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import eu.kanade.domain.history.model.HistoryWithRelations
import eu.kanade.domain.history.repository.HistoryRepository import eu.kanade.domain.history.repository.HistoryRepository
import eu.kanade.domain.manga.model.Manga import eu.kanade.domain.manga.model.Manga
import eu.kanade.tachiyomi.util.system.logcat import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
class HistoryRepositoryImpl( class HistoryRepositoryImpl(
private val handler: DatabaseHandler, private val handler: DatabaseHandler,
@ -67,7 +68,7 @@ class HistoryRepositoryImpl(
try { try {
handler.await { historyQueries.resetHistoryById(historyId) } handler.await { historyQueries.resetHistoryById(historyId) }
} catch (e: Exception) { } catch (e: Exception) {
logcat(throwable = e) logcat(LogPriority.ERROR, throwable = e)
} }
} }
@ -75,7 +76,7 @@ class HistoryRepositoryImpl(
try { try {
handler.await { historyQueries.resetHistoryByMangaId(mangaId) } handler.await { historyQueries.resetHistoryByMangaId(mangaId) }
} catch (e: Exception) { } catch (e: Exception) {
logcat(throwable = e) logcat(LogPriority.ERROR, throwable = e)
} }
} }
@ -84,7 +85,7 @@ class HistoryRepositoryImpl(
handler.await { historyQueries.removeAllHistory() } handler.await { historyQueries.removeAllHistory() }
true true
} catch (e: Exception) { } catch (e: Exception) {
logcat(throwable = e) logcat(LogPriority.ERROR, throwable = e)
false false
} }
} }