From 28be423e65e76243012c7825ca2a4fce5270b092 Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Fri, 20 May 2022 18:05:23 +0600 Subject: [PATCH] Fix `LogPriority` in `HistoryRepositoryImpl` (#7173) --- .../java/eu/kanade/data/history/HistoryRepositoryImpl.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/data/history/HistoryRepositoryImpl.kt b/app/src/main/java/eu/kanade/data/history/HistoryRepositoryImpl.kt index 19aaa8f29b..388a11bd1a 100644 --- a/app/src/main/java/eu/kanade/data/history/HistoryRepositoryImpl.kt +++ b/app/src/main/java/eu/kanade/data/history/HistoryRepositoryImpl.kt @@ -9,6 +9,7 @@ import eu.kanade.domain.history.model.HistoryWithRelations import eu.kanade.domain.history.repository.HistoryRepository import eu.kanade.domain.manga.model.Manga import eu.kanade.tachiyomi.util.system.logcat +import logcat.LogPriority class HistoryRepositoryImpl( private val handler: DatabaseHandler, @@ -67,7 +68,7 @@ class HistoryRepositoryImpl( try { handler.await { historyQueries.resetHistoryById(historyId) } } catch (e: Exception) { - logcat(throwable = e) + logcat(LogPriority.ERROR, throwable = e) } } @@ -75,7 +76,7 @@ class HistoryRepositoryImpl( try { handler.await { historyQueries.resetHistoryByMangaId(mangaId) } } catch (e: Exception) { - logcat(throwable = e) + logcat(LogPriority.ERROR, throwable = e) } } @@ -84,7 +85,7 @@ class HistoryRepositoryImpl( handler.await { historyQueries.removeAllHistory() } true } catch (e: Exception) { - logcat(throwable = e) + logcat(LogPriority.ERROR, throwable = e) false } }