mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
Add a couple of log lines about sockets for diagnostics. Refs #362
This commit is contained in:
1 parent
fa6079d4cd
commit
c0b3f39f06
3 files changed
+8
No files matched your search
@@ -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