Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 036e3ffc authored by Sal Savage's avatar Sal Savage
Browse files

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
parent 30a80b24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment