[Libreoffice-commits] online.git: loleaflet/src
László Németh
laszlo.nemeth at collabora.com
Thu Oct 27 12:55:56 UTC 2016
loleaflet/src/core/Socket.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 443d0baea169e5a7e07fba8912e4ce2e4510c759
Author: László Németh <laszlo.nemeth at collabora.com>
Date: Thu Oct 27 14:50:46 2016 +0200
loleaflet: tile debug: add timestamps to the console log
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index b24aed6..6182142 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -54,7 +54,7 @@ L.Socket = L.Class.extend({
if (typeof msg === 'string') {
L.Log.log(msg, L.OUTGOING, coords);
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log('%cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
+ console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
}
}
}
@@ -69,7 +69,7 @@ L.Socket = L.Class.extend({
if (typeof msg === 'string') {
L.Log.log(msg, L.OUTGOING, coords);
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log('%cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
+ console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
}
}
@@ -133,7 +133,7 @@ L.Socket = L.Class.extend({
}
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log('%cINCOMING%c: ' + textMsg.concat(' ').replace(' ', '%c ', 1), 'background:#ddf;color:black', 'color:blue', 'color:black');
+ console.log(+new Date() + ' %cINCOMING%c: ' + textMsg.concat(' ').replace(' ', '%c ', 1), 'background:#ddf;color:black', 'color:blue', 'color:black');
}
var command = this.parseServerCmd(textMsg);
More information about the Libreoffice-commits
mailing list