diff options
author | hyunho <hhstark.kang@samsung.com> | 2018-03-08 11:49:15 +0900 |
---|---|---|
committer | hyunho <hhstark.kang@samsung.com> | 2018-03-08 11:53:42 +0900 |
commit | 84481d5284d363ddd4a94fcad67dd902b4e1a7c4 (patch) | |
tree | fbb382aed0a767a89de2ddd6fe0fc737a26d2ed0 | |
parent | e6188b8f5be0bef8938879fac58a0ed45f96fd9c (diff) | |
download | message-port-84481d5284d363ddd4a94fcad67dd902b4e1a7c4.tar.gz message-port-84481d5284d363ddd4a94fcad67dd902b4e1a7c4.tar.bz2 message-port-84481d5284d363ddd4a94fcad67dd902b4e1a7c4.zip |
Modify retry log level (Error -> Warning)
Change-Id: If72ad5c1a3702285e312b03697ce3fd12c100af9
Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rwxr-xr-x | src/message_port_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message_port_common.c b/src/message_port_common.c index acdea9f..b025aa7 100755 --- a/src/message_port_common.c +++ b/src/message_port_common.c @@ -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; |