diff --git a/init/property_service.cpp b/init/property_service.cpp index 47e45efeb..e79157029 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -371,6 +371,7 @@ class SocketConnection { int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT)); if (result <= 0) { + PLOG(ERROR) << "sys_prop: recv error"; return false; } @@ -378,6 +379,10 @@ class SocketConnection { data += result; } + if (bytes_left != 0) { + LOG(ERROR) << "sys_prop: recv data is not properly obtained."; + } + return bytes_left == 0; }