Change the socket-related log level to debug 96/237396/2
authorJusung Son <jusung07.son@samsung.com>
Tue, 30 Jun 2020 05:02:43 +0000 (14:02 +0900)
committerJusung Son <jusung07.son@samsung.com>
Tue, 30 Jun 2020 05:07:18 +0000 (14:07 +0900)
Change-Id: I00716cb82b18a4a94a1cc06c15677f18b30fd326
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
src/port-internal.cc

index b1adf36..6e653a2 100644 (file)
@@ -103,7 +103,7 @@ int Port::Read(void* buf, unsigned int size) {
       return RPC_PORT_ERROR_IO_ERROR;
     } else if (nb == -1) {
       if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
-        LOGE("read_socket: %d errno, sleep and retry ...", errno);
+        LOGI("read_socket: %d errno, sleep and retry ...", errno);
         nanosleep(&TRY_SLEEP_TIME, 0);
         max_timeout -= (TRY_SLEEP_TIME.tv_nsec / (BASE_SLEEP));
         if (max_timeout <= 0) {
@@ -170,7 +170,7 @@ int Port::Write(const void* buf, unsigned int size) {
     nb = send(fd_, buffer, left, MSG_NOSIGNAL);
     if (nb == -1) {
       if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
-        LOGE("write_socket: %d errno, sleep and retry ...", errno);
+        LOGI("write_socket: %d errno, sleep and retry ...", errno);
         nanosleep(&TRY_SLEEP_TIME, 0);
         max_timeout -= (TRY_SLEEP_TIME.tv_nsec / (BASE_SLEEP));
         if (max_timeout <= 0) {