loleaflet/src/core/Socket.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 443d0baea169e5a7e07fba8912e4ce2e4510c759 Author: László Németh <laszlo.nem...@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);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits