mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-29 04:21:03 +00:00
feat: logging to file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package ani.dantotsu.parsers
|
||||
|
||||
import ani.dantotsu.logger
|
||||
import ani.dantotsu.util.Logger
|
||||
|
||||
class StringMatcher {
|
||||
companion object {
|
||||
@@ -54,10 +54,10 @@ class StringMatcher {
|
||||
val closestShowAndIndex = closestShow(target, shows)
|
||||
val closestIndex = closestShowAndIndex.second
|
||||
if (closestIndex == -1) {
|
||||
logger("No closest show found for $target")
|
||||
Logger.log("No closest show found for $target")
|
||||
return shows // Return original list if no closest show found
|
||||
}
|
||||
logger("Closest show found for $target is ${closestShowAndIndex.first.name}")
|
||||
Logger.log("Closest show found for $target is ${closestShowAndIndex.first.name}")
|
||||
return listOf(shows[closestIndex]) + shows.subList(0, closestIndex) + shows.subList(
|
||||
closestIndex + 1,
|
||||
shows.size
|
||||
|
||||
Reference in New Issue
Block a user