Correctly set name of logger (#956)
This commit is contained in:
@@ -390,7 +390,7 @@ object Manga {
|
||||
logContext: KLogger = logger,
|
||||
mangaId: Int,
|
||||
): 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.
|
||||
var mangaCategories = CategoryManga.getMangaCategories(mangaId).toSet()
|
||||
|
||||
@@ -313,7 +313,7 @@ object Track {
|
||||
try {
|
||||
trackChapterForTracker(it, chapterNumber)
|
||||
} 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" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user