Include url in http response logging
Otherwise it's impossible to tell which is which, especially when sending group messages. // FREEBIE
This commit is contained in:
@@ -38953,15 +38953,15 @@ TextSecureServer = function () {
|
||||
try { result = JSON.parse(xhr.responseText + ''); } catch(e) {}
|
||||
}
|
||||
if ( 0 <= xhr.status && xhr.status < 400) {
|
||||
console.log('Success', xhr.status);
|
||||
console.log('Success', xhr.status, url);
|
||||
resolve(result, xhr.status);
|
||||
} else {
|
||||
console.log('Error', xhr.status);
|
||||
console.log('Error', xhr.status, url);
|
||||
reject(HTTPError(xhr.status, result, error.stack));
|
||||
}
|
||||
};
|
||||
xhr.onerror = function() {
|
||||
console.log('Error', xhr.status);
|
||||
console.log('Error', xhr.status, url);
|
||||
reject(HTTPError(xhr.status, null, error.stack));
|
||||
};
|
||||
xhr.send( options.data || null );
|
||||
|
@@ -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);
|
||||
console.log('Success', xhr.status, url);
|
||||
resolve(result, xhr.status);
|
||||
} else {
|
||||
console.log('Error', xhr.status);
|
||||
console.log('Error', xhr.status, url);
|
||||
reject(HTTPError(xhr.status, result, error.stack));
|
||||
}
|
||||
};
|
||||
xhr.onerror = function() {
|
||||
console.log('Error', xhr.status);
|
||||
console.log('Error', xhr.status, url);
|
||||
reject(HTTPError(xhr.status, null, error.stack));
|
||||
};
|
||||
xhr.send( options.data || null );
|
||||
|
Reference in New Issue
Block a user