Permalink
Browse files

Fix for truncating log file

  • Loading branch information...
1 parent 2e7ba5d commit 22af75a9990057a7f4daf93669ac869e7f61b6a3 Carlos Rodriguez committed Jul 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -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;

0 comments on commit 22af75a

Please sign in to comment.