From 5f07c74f1a9e13c8513feed71f13c60213459876 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 29 Feb 2016 04:55:51 -0800 Subject: [PATCH] Add log statement when opening provisioning socket Make it more obvious via logs which server someone is attempting to register with (i.e., to disambiguate staging from prod). // FREEBIE --- js/libtextsecure.js | 1 + libtextsecure/api.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 75250505..703c6e3d 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -36640,6 +36640,7 @@ var TextSecureServer = (function() { ); }, getProvisioningSocket: function () { + console.log('opening provisioning socket', this.url); return new WebSocket( this.url.replace('https://', 'wss://') .replace('http://', 'ws://') diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 9fb295e9..b6ad784c 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -359,6 +359,7 @@ var TextSecureServer = (function() { ); }, getProvisioningSocket: function () { + console.log('opening provisioning socket', this.url); return new WebSocket( this.url.replace('https://', 'wss://') .replace('http://', 'ws://')