Allow omitting period in rotating-file streams

This commit is contained in:
Ricardo Graça 2013-03-19 16:08:36 +00:00
parent 2d2d39d1a7
commit 7681d83b5f

View file

@ -918,7 +918,6 @@ function safeCycles() {
if (mv) {
function RotatingFileStream(options) {
assert.ok(options.period, 'need a period');
this.path = options.path;
this.stream = fs.createWriteStream(this.path,
{flags: 'a', encoding: 'utf8'});