mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Add a couple of log lines about sockets for diagnostics. Refs #362
This commit is contained in:
@@ -276,6 +276,12 @@ void RenderDoc::Initialise()
|
||||
|
||||
m_TargetControlThreadShutdown = false;
|
||||
m_RemoteThread = Threading::CreateThread(TargetControlServerThread, (void *)sock);
|
||||
|
||||
RDCLOG("Listening for target control on %u", port);
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("Couldn't open socket for target control");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -322,6 +322,7 @@ Socket *CreateClientSocket(const char *host, uint16_t port, int timeoutMS)
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("Error connecting to %s:%d - %d", host, port, err);
|
||||
close(s);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -337,6 +337,7 @@ Socket *CreateClientSocket(const char *host, uint16_t port, int timeoutMS)
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCWARN("Error connecting to %s:%d - %d", host, port, err);
|
||||
closesocket(s);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user