From d441dad344464de4e3427dbf7c7a4ed5bc81a48a Mon Sep 17 00:00:00 2001 From: srcejon Date: Mon, 9 Jun 2025 20:07:22 +0100 Subject: [PATCH] Add debug --- plugins/feature/map/mapwebsocketserver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/feature/map/mapwebsocketserver.cpp b/plugins/feature/map/mapwebsocketserver.cpp index 027ca3018..f24087d85 100644 --- a/plugins/feature/map/mapwebsocketserver.cpp +++ b/plugins/feature/map/mapwebsocketserver.cpp @@ -93,8 +93,12 @@ void MapWebSocketServer::send(const QJsonObject &obj) qint64 bytesSent = m_client->sendTextMessage(bytes); m_client->flush(); // Try to reduce latency if (bytesSent != bytes.size()) { - qDebug() << "MapWebSocketServer::update - Sent only " << bytesSent << " bytes out of " << bytes.size(); + qDebug() << "MapWebSocketServer::send - Sent only " << bytesSent << " bytes out of " << bytes.size(); } } + else + { + qDebug() << "MapWebSocketServer::send - No client to send " << obj; + } }