Permalink
Browse files

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

  • Loading branch information...
1 parent 2908518 commit 3f38d649926f1cf6c4463850e53b4df969612bac @dglol dglol committed Apr 6, 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 3f38d64

Please sign in to comment.