diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt index 0b276796b..a4c8ff5a2 100644 --- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt +++ b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt @@ -128,4 +128,15 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) { interface Callback { fun printLog(state: Int, msg: String) } + + fun printLog( + sourceUrl: String?, + state: Int, + msg: String, + print: Boolean = true, + isHtml: Boolean = false + ): SourceDebug { + SourceDebug.printLog(sourceUrl, state, msg, print, isHtml) + return this + } } \ No newline at end of file