diff options
author | Danny Lin <danny@kdrag0n.dev> | 2021-04-05 22:26:06 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 5892be341f3221715433e59b7c9d20517bf9cb90 (patch) | |
tree | 978c9c57074e95a9f1d5faa44b6c67e83a39cebe | |
parent | 0ee03fd7567c130846a9df6e11fca13e5fd52010 (diff) |
[ProtonAOSP] libbinder: Suppress log spam when unlinking death recipients
Unlinking death recipients (from linkToDeath) is a normal part of Binder
operation, and doing it when a BpBinder's refcount has reached 0 is not
much different.
This log message is constantly spamming when swiping as part of a back
navigation gesture:
04-05 22:29:41.402 655 3888 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
04-05 22:29:41.413 655 3888 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
04-05 22:29:41.424 655 3888 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
04-05 22:29:41.435 655 681 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
04-05 22:29:41.447 655 3888 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
Logging is relatively expensive on Android and the log spam isn't
useful, so suppress this log message by setting it to the verbose log
level.
Change-Id: I774d0c59ca6f70a4e2ed33b9fac3fb5b86d8ff0a
-rw-r--r-- | libs/binder/BpBinder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/BpBinder.cpp b/libs/binder/BpBinder.cpp index d2b9b8f018..043b30ae9e 100644 --- a/libs/binder/BpBinder.cpp +++ b/libs/binder/BpBinder.cpp @@ -436,7 +436,7 @@ void BpBinder::onLastStrongRef(const void* /*id*/) Vector<Obituary>* obits = mObituaries; if(obits != nullptr) { if (!obits->isEmpty()) { - ALOGI("onLastStrongRef automatically unlinking death recipients: %s", + ALOGV("onLastStrongRef automatically unlinking death recipients: %s", mDescriptorCache.size() ? String8(mDescriptorCache).c_str() : "<uncached descriptor>"); } |