Open my9074 opened 6 years ago
https://github.com/keymetrics/pm2-logrotate/blob/master/app.js#L138
Because writestream.close has been changed in Node9, the callback function needs to be passed. Causes the log fs.truncate function to fail. In Node 8.x is OK
Feel free to send a quick PR
https://github.com/keymetrics/pm2-logrotate/blob/master/app.js#L138
Because writestream.close has been changed in Node9, the callback function needs to be passed. Causes the log fs.truncate function to fail. In Node 8.x is OK