diff options
| author | 2023-08-25 21:44:41 +0000 | |
|---|---|---|
| committer | 2023-08-25 21:44:41 +0000 | |
| commit | 30d9ffa40c5df320d4acafd2d68a9b99e7d7207d (patch) | |
| tree | 77327f231a7899759a534f6568ab0a78204c7c2e | |
| parent | bb3952d8f9a70021538b2e6860052f2766e4b8d2 (diff) | |
| parent | 691126585a46b57044a72483c54e7bff291c6427 (diff) | |
Merge "Don't log when there are no more messages" into main
| -rw-r--r-- | libs/input/InputTransport.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/input/InputTransport.cpp b/libs/input/InputTransport.cpp index 843ef273f6..5fec1a95ca 100644 --- a/libs/input/InputTransport.cpp +++ b/libs/input/InputTransport.cpp @@ -783,8 +783,10 @@ android::base::Result<InputPublisher::ConsumerResponse> InputPublisher::receiveC InputMessage msg; status_t result = mChannel->receiveMessage(&msg); if (result) { - ALOGD_IF(debugTransportPublisher(), "channel '%s' publisher ~ %s: %s", - mChannel->getName().c_str(), __func__, strerror(result)); + if (debugTransportPublisher() && result != WOULD_BLOCK) { + LOG(INFO) << "channel '" << mChannel->getName() << "' publisher ~ " << __func__ << ": " + << strerror(result); + } return android::base::Error(result); } if (msg.header.type == InputMessage::Type::FINISHED) { |