mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:58:28 +02:00
Log socket error string when socket error happens
This commit is contained in:
parent
6a66e1558b
commit
512b43e1de
1 changed files with 5 additions and 1 deletions
|
@ -486,7 +486,11 @@ std::vector<HifiSockAddr> Socket::getConnectionSockAddrs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Socket::handleSocketError(QAbstractSocket::SocketError socketError) {
|
void Socket::handleSocketError(QAbstractSocket::SocketError socketError) {
|
||||||
qCDebug(networking) << "udt::Socket error - " << socketError;
|
qCDebug(networking) << "udt::Socket (" << _udpSocket.state() << ") error - " << socketError << "(" << _udpSocket.errorString() << ")";
|
||||||
|
#ifdef DEBUG_EVENT_QUEUE
|
||||||
|
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
||||||
|
qCDebug(networking) << "Networking queue size - " << nodeListQueueSize;
|
||||||
|
#endif // DEBUG_EVENT_QUEUE
|
||||||
}
|
}
|
||||||
|
|
||||||
void Socket::handleStateChanged(QAbstractSocket::SocketState socketState) {
|
void Socket::handleStateChanged(QAbstractSocket::SocketState socketState) {
|
||||||
|
|
Loading…
Reference in a new issue