Permalink
Browse files

Merge pull request #127 from dglol/issue-126

Lines in log file now end with a comma (#127)
  • Loading branch information...
2 parents 2908518 + 3f38d64 commit 3328aef0bec956ae882054abe1aa14a8d5aeb516 @whimboo whimboo committed Apr 10, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 extension/lib/logger.js
View
@@ -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() {
@@ -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);
}
};

0 comments on commit 3328aef

Please sign in to comment.