diff options
author | 2021-05-26 18:44:11 +0000 | |
---|---|---|
committer | 2021-05-26 20:50:58 +0000 | |
commit | c12c9d9b54a0739378e6e42615b8e3a82e061319 (patch) | |
tree | 6e54869c242518a06a4e1517134d3353c975c18f /libs/binder/RpcState.cpp | |
parent | 85e067bf734fc6f53a836313b968ae2bb345edba (diff) |
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
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r-- | libs/binder/RpcState.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp index a8017296fa..2cad2ae74e 100644 --- a/libs/binder/RpcState.cpp +++ b/libs/binder/RpcState.cpp @@ -221,8 +221,8 @@ status_t RpcState::rpcSend(const base::unique_fd& fd, const char* what, const vo 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 @@ status_t RpcState::rpcRec(const base::unique_fd& fd, const sp<RpcSession>& sessi 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; } |