fix: simplify clipboard size limit logging
This commit is contained in:
parent
8a68513261
commit
1b27a5405d
2 changed files with 2 additions and 9 deletions
|
|
@ -368,11 +368,7 @@ void Client::sendClipboard(ClipboardID id)
|
|||
// marshall the data
|
||||
std::string data = clipboard.marshall();
|
||||
if (data.size() >= m_maximumClipboardSize * 1024) {
|
||||
LOG(
|
||||
(CLOG_INFO "skipping clipboard transfer because the clipboard"
|
||||
" contents exceeds the %i MB size limit set by the server",
|
||||
m_maximumClipboardSize / 1024)
|
||||
);
|
||||
LOG_WARN("not sending clipboard data, exceeds limit: %zu KB", m_maximumClipboardSize);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1459,10 +1459,7 @@ void Server::onClipboardChanged(const BaseClientProxy *sender, ClipboardID id, u
|
|||
|
||||
std::string data = clipboard.m_clipboard.marshall();
|
||||
if (data.size() > m_maximumClipboardSize * 1024) {
|
||||
LOG_INFO(
|
||||
"not updating clipboard because it's over the size limit (%i KB) configured by the server",
|
||||
m_maximumClipboardSize
|
||||
);
|
||||
LOG_WARN("not sending clipboard data, exceeds limit: %i KB", m_maximumClipboardSize);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue