loleaflet/src/core/Socket.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5e3fc10eee5dead114857f8c32d437caa97d03c9
Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk>
Date:   Sun Apr 16 19:45:22 2017 -0400

    loleaflet: log socket activity
    
    Change-Id: I763ac09fcd5eef700b331b4d8016db3d30e1ef9a
    Reviewed-on: https://gerrit.libreoffice.org/36594
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index c2ef985b..6edafeb8 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -15,6 +15,7 @@ L.Socket = L.Class.extend({
        },
 
        initialize: function (map) {
+               console.debug('socket.initialize:');
                this._map = map;
                try {
                        if (map.options.permission) {
@@ -108,6 +109,7 @@ L.Socket = L.Class.extend({
        },
 
        _onSocketOpen: function () {
+               console.debug('_onSocketOpen:');
                // Always send the protocol version number.
                // TODO: Move the version number somewhere sensible.
                this._doSend('loolclient ' + this.ProtocolVersionNumber);
@@ -524,11 +526,13 @@ L.Socket = L.Class.extend({
        },
 
        _onSocketError: function () {
+               console.debug('_onSocketError:');
                this._map.hideBusy();
                // Let onclose (_onSocketClose) report errors.
        },
 
        _onSocketClose: function (e) {
+               console.debug('_onSocketClose:');
                var isActive = this._map._active;
                this._map.hideBusy();
                this._map._active = false;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to