mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +02:00
Only print Qt event-queue size on change of error code
This commit is contained in:
parent
85c9f4d95f
commit
f17a1c17f3
1 changed files with 8 additions and 10 deletions
|
@ -250,14 +250,13 @@ qint64 Socket::writeDatagram(const QByteArray& datagram, const HifiSockAddr& soc
|
||||||
|
|
||||||
if (previousWsaError.exchange(wsaError) != wsaError) {
|
if (previousWsaError.exchange(wsaError) != wsaError) {
|
||||||
qCDebug(networking).noquote() << errorString;
|
qCDebug(networking).noquote() << errorString;
|
||||||
|
#ifdef DEBUG_EVENT_QUEUE
|
||||||
|
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
||||||
|
qCDebug(networking) << "Networking queue size - " << nodeListQueueSize << "writing datagram to" << sockAddr;
|
||||||
|
#endif // DEBUG_EVENT_QUEUE
|
||||||
} else {
|
} else {
|
||||||
HIFI_FCDEBUG(networking(), errorString.toLatin1().constData());
|
HIFI_FCDEBUG(networking(), errorString.toLatin1().constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_EVENT_QUEUE
|
|
||||||
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
|
||||||
qCDebug(networking) << "Networking queue size - " << nodeListQueueSize << "writing datagram to" << sockAddr;
|
|
||||||
#endif // DEBUG_EVENT_QUEUE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return bytesWritten;
|
return bytesWritten;
|
||||||
|
@ -547,14 +546,13 @@ void Socket::handleSocketError(QAbstractSocket::SocketError socketError) {
|
||||||
|
|
||||||
if (previousWsaError.exchange(wsaError) != wsaError) {
|
if (previousWsaError.exchange(wsaError) != wsaError) {
|
||||||
qCDebug(networking).noquote() << errorString;
|
qCDebug(networking).noquote() << errorString;
|
||||||
|
#ifdef DEBUG_EVENT_QUEUE
|
||||||
|
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
||||||
|
qCDebug(networking) << "Networking queue size - " << nodeListQueueSize;
|
||||||
|
#endif // DEBUG_EVENT_QUEUE
|
||||||
} else {
|
} else {
|
||||||
HIFI_FCDEBUG(networking(), errorString.toLatin1().constData());
|
HIFI_FCDEBUG(networking(), errorString.toLatin1().constData());
|
||||||
}
|
}
|
||||||
|
|
||||||
#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