当前位置:网站首页>AOSP ~ logcat chatty line expired

AOSP ~ logcat chatty line expired

2022-06-11 02:39:00 Nanke is cute

I have received a lot of these related to my application logcat news

11-19 19:04:23.872 3327 3440 I chatty : uid=10085 com.xxxx.yyy expire 18 lines

What are these log messages ? Do I lack the actual application here logcat journal ?

Yes , You are missing a log , This indicates that some messages are not placed in the actual log , It may be that other applications send too many messages to it .

` It seems to be Marshmallow(?) in liblog New things in the world . No clear explanation was found for the new logging policy , Even if there is actually an explanation , But this change is mentioned here :

Once the application records 5 More than content , We declared the application too talkative Wait a second . Please raise an error for the application owner , Generating class logging spam at this developer verbose debug level . journal The size is 256KB, This means that the application is creating DOS attack , Reduce the log time span to 6 second (!), Make it invalid for all other logs .

Once the application is logcat Think it's “ Chat ”( Exceeding every second 5 That's ok ), Your application log will be collapsed .

  • Put my app on the white list :
adb logcat -P "45678"
  • You can disable this behavior in the following ways :
adb logcat -P ""
  • Shows that I have whitelisted my application
adb logcat -p
45678 (the UID of my app)

perhaps

setprop ro.logd.filter disable

setprop persist.logd.filter disable 

You can check the code at system/core/logd/LogWhiteBlackList.cpp

原网站

版权声明
本文为[Nanke is cute]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110201352873.html