We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
起因:Retrofit写的一个POST请求,但是没有没有入参,打印日志时发现没有打印Headers,经翻阅源码发现,下图这方法的判断进入了printFileRequest 因为没有contentType,故进入了printFileRequest方法,而此方法没有打印Headers。 不知属于我个人问题还是框架判断的方式可以更优一点
The text was updated successfully, but these errors were encountered:
@ChawLoo 明天我看一下
Sorry, something went wrong.
hi @ChawLoo 使用这个吧:https://github.com/fengzhizi715/saf-logginginterceptor 也是我写的单独的日志拦截器,功能更多一些。支持添加强制打印 body 的路径,修复了当后端不规范时,Content-type是流类型 body是文本类型,导致结果无法输出问题。
最近比较忙,抽空我会升级一下这个库,包括使用的 Kotlin 版本。
但是这个依赖的话不能隐藏竖线就很头疼,有时候复制一下请求体需要手动删竖线
No branches or pull requests
起因:Retrofit写的一个POST请求,但是没有没有入参,打印日志时发现没有打印Headers,经翻阅源码发现,下图这方法的判断进入了printFileRequest
因为没有contentType,故进入了printFileRequest方法,而此方法没有打印Headers。
不知属于我个人问题还是框架判断的方式可以更优一点
The text was updated successfully, but these errors were encountered: