add more info in verbose mode

This commit is contained in:
Max Lv
2013-06-20 21:24:05 +08:00
parent 2c51dc1c56
commit db49089597
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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");
+1 -1
View File
@@ -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