Modify retry log level (Error -> Warning) 84/171884/3
authorhyunho <hhstark.kang@samsung.com>
Thu, 8 Mar 2018 02:49:15 +0000 (11:49 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 8 Mar 2018 02:53:42 +0000 (11:53 +0900)
Change-Id: If72ad5c1a3702285e312b03697ce3fd12c100af9
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/message_port_common.c

index acdea9f..b025aa7 100755 (executable)
@@ -76,7 +76,7 @@ int write_socket(int fd,
                nb = write(fd, buffer, left);
                if (nb == -1) {
                        if (errno == EINTR) {
-                               LOGE("write_socket: EINTR error continue ...");
+                               LOGW("write_socket: EINTR continue ...");
                                retry_cnt++;
                                continue;
                        }
@@ -149,7 +149,7 @@ int read_socket(int fd,
                } else if (nb == -1) {
                        /*  wrt(nodejs) could change socket to none-blocking socket :-( */
                        if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
-                               LOGE("read_socket: %d errno, sleep and retry ...", errno);
+                               LOGW("read_socket: %d , sleep and retry ...", errno);
                                retry_cnt++;
                                nanosleep(&TRY_SLEEP_TIME, 0);
                                TRY_SLEEP_TIME.tv_nsec *= 2;