Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Lines in log file now end with a comma (#127) #127

Merged
merged 1 commit into from Apr 10, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions extension/lib/logger.js
Expand Up @@ -90,7 +90,7 @@ Logger.prototype.prepareFile = function Logger_prepareFile() {

this._file = file;
this._firstLog = true;
this._writeAsync('[' + '\r\n');
this._writeAsync('[');
};

Logger.prototype.start = function Logger_start() {
Expand Down Expand Up @@ -139,10 +139,9 @@ Logger.prototype.log = function Logger_log(aType, aData, aCallback) {
this._firstLog = false;
}
else {
message = ',' + message;
message = ',' + '\r\n' + message;
}

message = message + '\r\n';
this._writeAsync(message, aCallback);
}
};
Expand Down