fix: simplify clipboard size limit logging

This commit is contained in:
Nick Bolton 2026-05-10 06:18:20 +01:00
parent 8a68513261
commit 1b27a5405d
2 changed files with 2 additions and 9 deletions

View file

@ -368,11 +368,7 @@ void Client::sendClipboard(ClipboardID id)
// marshall the data // marshall the data
std::string data = clipboard.marshall(); std::string data = clipboard.marshall();
if (data.size() >= m_maximumClipboardSize * 1024) { if (data.size() >= m_maximumClipboardSize * 1024) {
LOG( LOG_WARN("not sending clipboard data, exceeds limit: %zu KB", m_maximumClipboardSize);
(CLOG_INFO "skipping clipboard transfer because the clipboard"
" contents exceeds the %i MB size limit set by the server",
m_maximumClipboardSize / 1024)
);
return; return;
} }

View file

@ -1459,10 +1459,7 @@ void Server::onClipboardChanged(const BaseClientProxy *sender, ClipboardID id, u
std::string data = clipboard.m_clipboard.marshall(); std::string data = clipboard.m_clipboard.marshall();
if (data.size() > m_maximumClipboardSize * 1024) { if (data.size() > m_maximumClipboardSize * 1024) {
LOG_INFO( LOG_WARN("not sending clipboard data, exceeds limit: %i KB", m_maximumClipboardSize);
"not updating clipboard because it's over the size limit (%i KB) configured by the server",
m_maximumClipboardSize
);
return; return;
} }