How do I fix whatever is causing this to flood my logcat: I/System.out﹕ (HTTPLog)-Static: isSBSettingEnabled false

删除回忆录丶 提交于 2019-11-30 04:22:02

You can use the regex filter to hide the log message flooding your log:

^((?!isSBSettingEnabled).)*$

You can also hide more than one offending log by using |. For example

^((?!isSBSettingEnabled|OtherLog|OtherLog2|Annoying Messages).)*$
Timon Langlotz

You are probably using a HttpUrlConnection or a HttpsUrlConnection. Maybe you can find out which class is logging by calling getClass() on the corresponding connection and turn it off with the Logger.getLogger("...").setLevel(Level.OFF);

See also Enable logging for JDK class programmatically

Aaron Sanson

If you are using HttpLoggingInterceptor on the application that runs on a Samsung device, just set the loglevel to the body, it will fix everything. Something like this should work fine:

HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);

Solution:

Add in your application tag:

android:usesCleartextTraffic="true"

As follows:

<application
    ....
    android:usesCleartextTraffic="true"
    ....>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!