From deebe9cc929e064a00b83aadd708bdb03dcb6e7b Mon Sep 17 00:00:00 2001 From: yuqing Date: Fri, 4 Jul 2014 09:34:04 +0800 Subject: [PATCH] change log level from ERROR to DEBUG when IOEVENT_ERROR --- HISTORY | 3 ++- storage/storage_nio.c | 4 ++-- tracker/tracker_nio.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/HISTORY b/HISTORY index 069269d..f6037c1 100644 --- a/HISTORY +++ b/HISTORY @@ -1,8 +1,9 @@ -Version 5.02 2014-06-23 +Version 5.02 2014-07-04 * corect README spell mistake * bug fixed: can't deal sync truncate file exception * remove tracker_global.c extern keyword to tracker_global.h + * change log level from ERROR to DEBUG when IOEVENT_ERROR Version 5.01 2014-02-02 * trunk binlog be compressed when trunk init diff --git a/storage/storage_nio.c b/storage/storage_nio.c index 2cfcc2b..6213cb7 100644 --- a/storage/storage_nio.c +++ b/storage/storage_nio.c @@ -287,7 +287,7 @@ static void client_sock_read(int sock, short event, void *arg) if (event & IOEVENT_ERROR) { - logError("file: "__FILE__", line: %d, " \ + logDebug("file: "__FILE__", line: %d, " \ "client ip: %s, recv error event: %d, " "close connection", __LINE__, pTask->client_ip, event); @@ -434,7 +434,7 @@ static void client_sock_write(int sock, short event, void *arg) if (event & IOEVENT_ERROR) { - logError("file: "__FILE__", line: %d, " \ + logDebug("file: "__FILE__", line: %d, " \ "client ip: %s, recv error event: %d, " "close connection", __LINE__, pTask->client_ip, event); diff --git a/tracker/tracker_nio.c b/tracker/tracker_nio.c index 2d52512..9d525f2 100644 --- a/tracker/tracker_nio.c +++ b/tracker/tracker_nio.c @@ -220,7 +220,7 @@ static void client_sock_read(int sock, short event, void *arg) if (event & IOEVENT_ERROR) { - logError("file: "__FILE__", line: %d, " \ + logDebug("file: "__FILE__", line: %d, " \ "client ip: %s, recv error event: %d, " "close connection", __LINE__, pTask->client_ip, event); @@ -338,7 +338,7 @@ static void client_sock_write(int sock, short event, void *arg) if (event & IOEVENT_ERROR) { - logError("file: "__FILE__", line: %d, " \ + logDebug("file: "__FILE__", line: %d, " \ "client ip: %s, recv error event: %d, " "close connection", __LINE__, pTask->client_ip, event);