From a4b8c5f5b93639100fd90a133122d2a5ab8cd318 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Tue, 12 Sep 2017 23:34:55 -0500 Subject: [PATCH] added debug info --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index be9b3da..b118673 100644 --- a/main.cpp +++ b/main.cpp @@ -593,7 +593,7 @@ int create_new_udp(int &new_udp_fd) mylog(log_debug, "created new udp_fd %d\n", new_udp_fd); int ret = connect(new_udp_fd, (struct sockaddr *) &remote_addr_in, slen); if (ret != 0) { - mylog(log_warn, "udp fd connect fail\n"); + mylog(log_warn, "udp fd connect fail %d %s\n",ret,strerror(errno)); close(new_udp_fd); return -1; }