Skip to content
Snippets Groups Projects
Commit 901db828 authored by hluk's avatar hluk
Browse files

Remove debug log for big messages

parent 9b849b1e
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,6 @@
namespace {
const int bigMessageThreshold = 5 * 1024 * 1024;
ClientSocketId lastSocketId = 0;
const quint32 protocolMagicNumber = 0x0C090701;
......@@ -80,9 +79,6 @@ bool writeMessage(QLocalSocket *socket, const QByteArray &msg)
{
COPYQ_LOG_VERBOSE( QString("Write message (%1 bytes).").arg(msg.size()) );
if (msg.size() > bigMessageThreshold)
COPYQ_LOG( QString("Sending big message: %1 MiB").arg(msg.size() / 1024 / 1024) );
QDataStream out(socket);
out.setVersion(QDataStream::Qt_5_0);
// length is serialized as a quint32, followed by msg
......@@ -253,9 +249,6 @@ void ClientSocket::onReadyRead()
m_message.remove(0, preambleSize);
m_hasMessageLength = true;
if (m_messageLength > bigMessageThreshold)
COPYQ_LOG( QString("Receiving big message: %1 MiB").arg(m_messageLength / 1024 / 1024) );
}
const auto length = static_cast<int>(m_messageLength);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment