[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-4' - loleaflet/js
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 29 15:19:59 UTC 2020
loleaflet/js/global.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 1ffecad125a1a017fab1c5030e59e3e037d77e52
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu May 28 21:56:11 2020 +0100
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Fri May 29 17:19:42 2020 +0200
Proxy: calm down console debug churn for now.
Change-Id: If31ea5e447e90ad21d07e972eaeb556972b9447a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95073
Tested-by: Andras Timar <andras.timar at collabora.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index 2a789e98e..20757e2a5 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -284,13 +284,13 @@
return this.decoder.decode(this.doSlice(bytes, start,end));
};
this.parseIncomingArray = function(arr) {
- console.debug('proxy: parse incoming array of length ' + arr.length);
+// console.debug('proxy: parse incoming array of length ' + arr.length);
for (var i = 0; i < arr.length; ++i)
{
var left = arr.length - i;
if (left < 4)
{
- console.debug('no data left');
+// console.debug('no data left');
break;
}
var type = String.fromCharCode(arr[i+0]);
@@ -398,8 +398,8 @@
// too long, hangs, throws, etc. we can recover.
that._setPollInterval(that.maxPollMs);
- console.debug('send msg - ' + that.msgInflight + ' on session ' +
- that.sessionId + ' queue: "' + that.sendQueue + '"');
+// console.debug('send msg - ' + that.msgInflight + ' on session ' +
+// that.sessionId + ' queue: "' + that.sendQueue + '"');
var req = new XMLHttpRequest();
req.open('POST', that.getEndPoint('write'));
req.responseType = 'arraybuffer';
@@ -434,7 +434,7 @@
{
// Throttle.
that.curPollMs = Math.min(that.maxPollMs, that.curPollMs * that.throttleFactor) | 0;
- console.debug('No data for ' + timeSinceLastDataMs + ' ms -- throttling to ' + that.curPollMs + ' ms.');
+// console.debug('No data for ' + timeSinceLastDataMs + ' ms -- throttling to ' + that.curPollMs + ' ms.');
}
}
@@ -480,7 +480,7 @@
// Unless we are backed up.
if (that.msgInflight <= 3)
{
- console.debug('Have data to send, lowering poll interval.');
+// console.debug('Have data to send, lowering poll interval.');
that.curPollMs = that.minPollMs;
that._setPollInterval(that.curPollMs);
}
More information about the Libreoffice-commits
mailing list