Bug 1275284 - Make debug log more readable. r=clokep

--HG--
extra : rebase_source : e1b64d9e0782ae294f9c68fb8e66a11a5d70d28f
This commit is contained in:
aleth 2016-09-28 00:22:41 +02:00
Родитель 3281946ce0
Коммит 193840c602
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -231,6 +231,8 @@ var GenericTwitterConversation = {
entities = aTweet.entities;
}
this._account.LOG("Tweet: " + text);
if (Object.keys(entities).length) {
/* entArray is an array of entities ready to be replaced in the tweet,
* each entity contains:
@ -819,7 +821,10 @@ Account.prototype = {
onDataAvailable: function(aRequest) {
this.resetStreamTimeout();
let newText = this._pendingData + aRequest.target.response;
if (newText.trim())
this.DEBUG("Received data: " + newText);
else
this.DEBUG("Received ping");
let messages = newText.split(/\r\n?/);
this._pendingData = messages.pop();
for (let message of messages) {