Skip to content

Commit

Permalink
Add error log for unsupported winsock
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Jul 30, 2021
1 parent 8fda75b commit 01517a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exporters/jaeger/src/udp_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ void UDPTransport::InitSocket()

if (LOBYTE(wsaData.wVersion) != 2 || HIBYTE(wsaData.wVersion) != 2)
{
// TODO: handle error that WinSock 2.2 is not supported.
OTEL_INTERNAL_LOG_ERROR("Jaeger Exporter: winsock " << LOBYTE(wsaData.wVersion) << "."
<< HIBYTE(wsaData.wVersion)
<< " is not supported.");
WSACleanup();

return;
Expand Down

0 comments on commit 01517a3

Please sign in to comment.