diff options
author | Andy Nichols <andy.nichols@theqtcompany.com> | 2016-06-21 14:43:21 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2016-06-28 10:18:41 +0000 |
commit | 8d67ce3c6f6e8a89ebf640b7722c5812f3d80615 (patch) | |
tree | 897f29e8b1a64a3d8862c359970037b73557c350 /src/plugins/platforms/vnc/qvnc.cpp | |
parent | adf6bd931fe479b058752fb615c30c87ba661f46 (diff) |
Cleanup VNC platform plugins debug messages
There were many development debug statements still intact, so now they
have been removed. Some Debug messages were turned into Warnings when
it makes sense to warn the end user of something. The rest of the
useful debug messages were converted to be in the qt.qpa.vnc logging
catagory.
Change-Id: I8e9525f02794ab5eccd4c8fcbc2b1f7c9c25b482
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/vnc/qvnc.cpp')
-rw-r--r-- | src/plugins/platforms/vnc/qvnc.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/platforms/vnc/qvnc.cpp b/src/plugins/platforms/vnc/qvnc.cpp index 743888258e..b3613cf18f 100644 --- a/src/plugins/platforms/vnc/qvnc.cpp +++ b/src/plugins/platforms/vnc/qvnc.cpp @@ -52,8 +52,12 @@ #include <arpa/inet.h> #endif +#include <QtCore/QDebug> + QT_BEGIN_NAMESPACE +Q_LOGGING_CATEGORY(lcVnc, "qt.qpa.vnc"); + QVncDirtyMap::QVncDirtyMap(QVncScreen *screen) : screen(screen), bytesPerPixel(0), numDirty(0) { @@ -456,7 +460,7 @@ void QRfbRawEncoder::write() // create a region from the dirty rects and send the region's merged rects. // ### use the tile map again QRegion rgn = client->dirtyRegion(); - QT_VNC_DEBUG() << "QRfbRawEncoder::write()" << rgn; + qCDebug(lcVnc) << "QRfbRawEncoder::write()" << rgn; // if (map) { // for (int y = 0; y < map->mapHeight; ++y) { // for (int x = 0; x < map->mapWidth; ++x) { @@ -622,10 +626,9 @@ void QVncServer::init() { serverSocket = new QTcpServer(this); if (!serverSocket->listen(QHostAddress::Any, m_port)) - qDebug() << "QVncServer could not connect:" << serverSocket->errorString(); + qWarning() << "QVncServer could not connect:" << serverSocket->errorString(); else - QT_VNC_DEBUG("QVncServer created on port %d", m_port); - QT_VNC_DEBUG() << "running in thread" << thread() << QThread::currentThread(); + qWarning("QVncServer created on port %d", m_port); connect(serverSocket, SIGNAL(newConnection()), this, SLOT(newConnection())); @@ -654,7 +657,7 @@ void QVncServer::newConnection() dirtyMap()->reset(); - QT_VNC_DEBUG() << "new Connection" << thread(); + qCDebug(lcVnc) << "new Connection from: " << clientSocket->localAddress(); qvnc_screen->setPowerState(QPlatformScreen::PowerStateOn); } |