Set the stack's default logging level to match "log.tag.bluetooth"
Normally, the android logging framework uses the system wide default log level (info) when deciding what to return when calling Log.isLoggable or the other various APIs in different languages. This patch uses the __android_log_set_minimum_priority() function to override that value to a special bluetooth log tag so we can control our own default. Once set, this impacts whats returned for isLoggable calls when nothing is set. It also updates how log lines are enforced by the framework. Now, Log.d(TAG) and other calls will be checked against the process minimum level instead of verbose (which is effectively "no enforcement" otherwise) Tag: #refactor Bug: 315046089 Flag: EXEMPT, logging only change Test: m com.android.btservices Change-Id: I3b65b38e6ab9c51881e767fc0e6e6d14d12b7ed4
Loading
Please register or sign in to comment