Fix/excessive logging (#848)

* Remove log of mangas to update

This logged the full manga data objects in the list with information that is not needed (e.g. description of a manga).
Once a manga gets updated via the updater, it gets logged, which should be enough

* Include manga id in updater log

* Use "toString" to log mangas

* Change "HttpLoggingInterceptor" level to "BASIC"

Was unintentionally merged with d658e07583
This commit is contained in:
schroda
2024-01-24 23:49:16 +01:00
committed by GitHub
parent 562b940d91
commit fc64f47589
3 changed files with 8 additions and 6 deletions

View File

@@ -43,7 +43,11 @@ data class MangaDataClass(
val age: Long? = if (lastFetchedAt == null) 0 else Instant.now().epochSecond.minus(lastFetchedAt),
val chaptersAge: Long? = if (chaptersLastFetchedAt == null) null else Instant.now().epochSecond.minus(chaptersLastFetchedAt),
val trackers: List<MangaTrackerDataClass>? = null,
)
) {
override fun toString(): String {
return "\"$title\" (id= $id) (sourceId= $sourceId)"
}
}
data class PagedMangaListDataClass(
val mangaList: List<MangaDataClass>,