Skip to content

Commit

Permalink
修复总是打印了 graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 9, 2024
1 parent 7c0a77c commit 58815cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datasource/bangumi/src/commonMain/kotlin/BangumiClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import me.him188.ani.datasources.bangumi.next.apis.SubjectBangumiNextApi
import me.him188.ani.utils.ktor.ClientProxyConfig
import me.him188.ani.utils.ktor.proxy
import me.him188.ani.utils.ktor.registerLogging
import me.him188.ani.utils.logging.error
import me.him188.ani.utils.logging.logger
import me.him188.ani.utils.platform.collections.mapToIntArray
import me.him188.ani.utils.serialization.toJsonArray
Expand Down Expand Up @@ -196,9 +195,8 @@ class BangumiClientImpl(
}
} catch (e: Exception) {
// POST https://api.bgm.tv/v0/graphql [Authorized]: 400 in 317.809375ms
logger.error { "Failed to execute GraphQL query action'$actionName', the query is: \n$query" } // 记录一下 query,
throw e.apply {
addSuppressed(IllegalStateException("Callsite"))
addSuppressed(IllegalStateException("Failed to execute GraphQL query action'$actionName', the query is: \n$query"))
}
}

Expand Down

0 comments on commit 58815cd

Please sign in to comment.