From 306b5660d80c4d0bd7b376bb953711d863a3fedf Mon Sep 17 00:00:00 2001 From: Wesley Fredrickson Date: Wed, 7 Oct 2015 10:15:46 -0600 Subject: [PATCH] Fixed octal literal to work with node 4 strict mode --- lib/winston/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston/common.js b/lib/winston/common.js index 7351b11cc..8aa3ba9ef 100644 --- a/lib/winston/common.js +++ b/lib/winston/common.js @@ -364,7 +364,7 @@ exports.tailFile = function(options, callback) { stream.emit('close'); }; - fs.open(options.file, 'a+', 0644, function(err, fd) { + fs.open(options.file, 'a+', '0644', function(err, fd) { if (err) { if (!callback) { stream.emit('error', err);