liujingxing / rxhttp

🔥🔥🔥 Based on OkHttp encapsulation, support Kotlin Coroutines、RxJava2、RxJava3; 30s to get started.
https://juejin.im/post/5ded221a518825125d14a1d4
Apache License 2.0
3.74k stars 457 forks source link

非标准json字符串,日志打印丢失部分信息 #463

Closed liujingxing closed 11 months ago

liujingxing commented 11 months ago

rxhttp版本:3.1.1

配置

RxHttpPlugins.init(client) 
   .setDebug(BuildConfig.DEBUG, true, 2)

当接口返回一个非标准json字符串S = A + B,其中A是标准json字符串,B是任意字符串,此时B字符串将不打印,例如:

{"code":"106","msg":"No data","data":[]}{"age":18}

打印如下

image
liujingxing commented 11 months ago

已改,非标准字符串,不格式化输出

image