mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
Correctly set name of logger (#956)
This commit is contained in:
@@ -390,7 +390,7 @@ object Manga {
|
|||||||
logContext: KLogger = logger,
|
logContext: KLogger = logger,
|
||||||
mangaId: Int,
|
mangaId: Int,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val log = KotlinLogging.logger { "${logContext.name}::isInExcludedDownloadCategory($mangaId)" }
|
val log = KotlinLogging.logger("${logContext.name}::isInExcludedDownloadCategory($mangaId)")
|
||||||
|
|
||||||
// Verify the manga is configured to be downloaded based on it's categories.
|
// Verify the manga is configured to be downloaded based on it's categories.
|
||||||
var mangaCategories = CategoryManga.getMangaCategories(mangaId).toSet()
|
var mangaCategories = CategoryManga.getMangaCategories(mangaId).toSet()
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ object Track {
|
|||||||
try {
|
try {
|
||||||
trackChapterForTracker(it, chapterNumber)
|
trackChapterForTracker(it, chapterNumber)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
KotlinLogging.logger { "${logger.name}::trackChapter(mangaId= $mangaId, chapterNumber= $chapterNumber)" }
|
KotlinLogging.logger("${logger.name}::trackChapter(mangaId= $mangaId, chapterNumber= $chapterNumber)")
|
||||||
.error(e) { "failed due to" }
|
.error(e) { "failed due to" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user