From 07e8d053335456824bd6d93f2d60e35ab3ea0a11 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 7 Aug 2019 00:21:06 +0200 Subject: [PATCH] fix: connect error print statuscode --- helpers/open_tcp_connection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/open_tcp_connection.cc b/helpers/open_tcp_connection.cc index 099b8fa..9b4c1ec 100644 --- a/helpers/open_tcp_connection.cc +++ b/helpers/open_tcp_connection.cc @@ -22,7 +22,7 @@ helpers::open_tcp_connection(char *host, char *port) if ((status = connect(s, res->ai_addr, res->ai_addrlen)) != 0) { - LOG_ERROR << "Error opening connection"; + LOG_ERROR << "Error opening connection " << status; freeaddrinfo(res); return 0; }