Bug 1275284 - Make debug log more readable. r=clokep
--HG-- extra : rebase_source : e1b64d9e0782ae294f9c68fb8e66a11a5d70d28f
This commit is contained in:
Родитель
3281946ce0
Коммит
193840c602
|
@ -231,6 +231,8 @@ var GenericTwitterConversation = {
|
||||||
entities = aTweet.entities;
|
entities = aTweet.entities;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._account.LOG("Tweet: " + text);
|
||||||
|
|
||||||
if (Object.keys(entities).length) {
|
if (Object.keys(entities).length) {
|
||||||
/* entArray is an array of entities ready to be replaced in the tweet,
|
/* entArray is an array of entities ready to be replaced in the tweet,
|
||||||
* each entity contains:
|
* each entity contains:
|
||||||
|
@ -819,7 +821,10 @@ Account.prototype = {
|
||||||
onDataAvailable: function(aRequest) {
|
onDataAvailable: function(aRequest) {
|
||||||
this.resetStreamTimeout();
|
this.resetStreamTimeout();
|
||||||
let newText = this._pendingData + aRequest.target.response;
|
let newText = this._pendingData + aRequest.target.response;
|
||||||
|
if (newText.trim())
|
||||||
this.DEBUG("Received data: " + newText);
|
this.DEBUG("Received data: " + newText);
|
||||||
|
else
|
||||||
|
this.DEBUG("Received ping");
|
||||||
let messages = newText.split(/\r\n?/);
|
let messages = newText.split(/\r\n?/);
|
||||||
this._pendingData = messages.pop();
|
this._pendingData = messages.pop();
|
||||||
for (let message of messages) {
|
for (let message of messages) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче