remove debug output

The library is writing to stderr on normal conditions (about to connect, connected), which is likely not desired by library user.

If it has important use cases, consider restoring the output under compile or runtime control.
This commit is contained in:
John Belmonte
2018-03-14 14:00:24 +09:00
committed by David Baird
parent 189d9dd5f5
commit 9b87dc4880
+2 -2
View File
@@ -457,7 +457,7 @@ easywsclient::WebSocket::pointer from_url(const std::string& url, bool useMask,
fprintf(stderr, "ERROR: Could not parse WebSocket url: %s\n", url.c_str());
return NULL;
}
fprintf(stderr, "easywsclient: connecting: host=%s port=%d path=/%s\n", host, port, path);
//fprintf(stderr, "easywsclient: connecting: host=%s port=%d path=/%s\n", host, port, path);
socket_t sockfd = hostname_connect(host, port);
if (sockfd == INVALID_SOCKET) {
fprintf(stderr, "Unable to connect to %s:%d\n", host, port);
@@ -501,7 +501,7 @@ easywsclient::WebSocket::pointer from_url(const std::string& url, bool useMask,
#else
fcntl(sockfd, F_SETFL, O_NONBLOCK);
#endif
fprintf(stderr, "Connected to: %s\n", url.c_str());
//fprintf(stderr, "Connected to: %s\n", url.c_str());
return easywsclient::WebSocket::pointer(new _RealWebSocket(sockfd, useMask));
}