From db49089597eb1d8bbff0f5478d8ac1b092c23777 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 20 Jun 2013 21:24:05 +0800 Subject: [PATCH] add more info in verbose mode --- src/local.c | 3 +++ src/server.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/local.c b/src/local.c index cb68b32b..bb101c9b 100644 --- a/src/local.c +++ b/src/local.c @@ -582,6 +582,9 @@ static void accept_cb (EV_P_ ev_io *w, int revents) { hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; int index = clock() % listener->remote_num; + if (verbose) { + LOGD("connect to remote: %s", listener->remote_host[index]); + } int err = getaddrinfo(listener->remote_host[index], listener->remote_port, &hints, &res); if (err) { ERROR("getaddrinfo"); diff --git a/src/server.c b/src/server.c index f0b673a8..516f5edf 100644 --- a/src/server.c +++ b/src/server.c @@ -823,7 +823,7 @@ int main (int argc, char **argv) { } // Setup keys - LOGD("calculating ciphers..."); + LOGD("initialize cihpers... %s", method); int m = enc_init(password, method); // Inilitialize ev loop