pm2-logrotate
pm2-logrotate copied to clipboard
writeStream.close in Node9.x throw error
trafficstars
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