mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 01:23:17 +02:00
Merge pull request #8935 from zzmp/log/silence-udt-socket
group udt::Socket errors as debug logs
This commit is contained in:
commit
dc8d0bf31c
1 changed files with 6 additions and 2 deletions
|
@ -508,12 +508,16 @@ std::vector<HifiSockAddr> Socket::getConnectionSockAddrs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Socket::handleSocketError(QAbstractSocket::SocketError socketError) {
|
void Socket::handleSocketError(QAbstractSocket::SocketError socketError) {
|
||||||
qCWarning(networking) << "udt::Socket error -" << socketError;
|
static const QString SOCKET_REGEX = "udt::Socket error - ";
|
||||||
|
static QString repeatedMessage
|
||||||
|
= LogHandler::getInstance().addRepeatedMessageRegex(SOCKET_REGEX);
|
||||||
|
|
||||||
|
qCDebug(networking) << "udt::Socket error - " << socketError;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Socket::handleStateChanged(QAbstractSocket::SocketState socketState) {
|
void Socket::handleStateChanged(QAbstractSocket::SocketState socketState) {
|
||||||
if (socketState != QAbstractSocket::BoundState) {
|
if (socketState != QAbstractSocket::BoundState) {
|
||||||
qCWarning(networking) << "udt::Socket state changed - state is now" << socketState;
|
qCDebug(networking) << "udt::Socket state changed - state is now" << socketState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue