Skip to content

Commit

Permalink
Fix for truncating log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Jul 22, 2012
1 parent 2e7ba5d commit 22af75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports = module.exports = function accesslog(options) {

var stream;
if (options.path) {
stream = require('fs').createWriteStream(options.path);
stream = require('fs').createWriteStream(options.path, {flags: 'a+'});
}
else if (options.stream) {
stream = options.stream;
Expand Down

0 comments on commit 22af75a

Please sign in to comment.