From 087e67a73208f4a9322c2037cd7a9beed3d11a8c Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 16 Mar 2014 10:11:39 +0800 Subject: [PATCH] refine the log output --- src/udprelay.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/udprelay.c b/src/udprelay.c index bc625cbb..9c7d5f20 100644 --- a/src/udprelay.c +++ b/src/udprelay.c @@ -350,7 +350,10 @@ static void remote_timeout_cb(EV_P_ ev_timer *watcher, int revents) struct remote_ctx *remote_ctx = (struct remote_ctx *) (((void*)watcher) - sizeof(ev_io)); - LOGE("UDP connection timeout"); + if (verbose) + { + LOGD("UDP connection timeout"); + } char *key = hash_key(remote_ctx->addr_header, remote_ctx->addr_header_len, &remote_ctx->src_addr);