libbinder: quiet RPC read/write failures
These are pretty common when shutting down processes, and they are
returned to clients. Turning these logs off by default.
Bug: N/A
Test: binderRpcTest
Change-Id: Ifb74b312e934096002d3681db590c4bafe43bcab
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp
index a801729..2cad2ae 100644
--- a/libs/binder/RpcState.cpp
+++ b/libs/binder/RpcState.cpp
@@ -221,8 +221,8 @@
if (sent < 0 || sent != static_cast<ssize_t>(size)) {
int savedErrno = errno;
- ALOGE("Failed to send %s (sent %zd of %zu bytes) on fd %d, error: %s", what, sent, size,
- fd.get(), strerror(savedErrno));
+ LOG_RPC_DETAIL("Failed to send %s (sent %zd of %zu bytes) on fd %d, error: %s", what, sent,
+ size, fd.get(), strerror(savedErrno));
terminate();
return -savedErrno;
@@ -241,10 +241,8 @@
if (status_t status = session->mShutdownTrigger->interruptableReadFully(fd.get(), data, size);
status != OK) {
- if (status != -ECANCELED) {
- ALOGE("Failed to read %s (%zu bytes) on fd %d, error: %s", what, size, fd.get(),
- statusToString(status).c_str());
- }
+ LOG_RPC_DETAIL("Failed to read %s (%zu bytes) on fd %d, error: %s", what, size, fd.get(),
+ statusToString(status).c_str());
return status;
}