diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 541096718cf..f2be1d2a15a 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38962,15 +38962,15 @@ TextSecureServer = function () { try { result = JSON.parse(xhr.responseText + ''); } catch(e) {} } if ( 0 <= xhr.status && xhr.status < 400) { - console.log('Success', xhr.status, url); + console.log(options.type, url, xhr.status, 'Success'); resolve(result, xhr.status); } else { - console.log('Error', xhr.status, url); + console.log(options.type, url, xhr.status, 'Error'); reject(HTTPError(xhr.status, result, error.stack)); } }; xhr.onerror = function() { - console.log('Error', xhr.status, url); + console.log(options.type, url, xhr.status, 'Error'); reject(HTTPError(xhr.status, null, error.stack)); }; xhr.send( options.data || null ); diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 3b38a282ddf..081eb63c190 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -65,15 +65,15 @@ TextSecureServer = function () { try { result = JSON.parse(xhr.responseText + ''); } catch(e) {} } if ( 0 <= xhr.status && xhr.status < 400) { - console.log('Success', xhr.status, url); + console.log(options.type, url, xhr.status, 'Success'); resolve(result, xhr.status); } else { - console.log('Error', xhr.status, url); + console.log(options.type, url, xhr.status, 'Error'); reject(HTTPError(xhr.status, result, error.stack)); } }; xhr.onerror = function() { - console.log('Error', xhr.status, url); + console.log(options.type, url, xhr.status, 'Error'); reject(HTTPError(xhr.status, null, error.stack)); }; xhr.send( options.data || null );