pm2-logrotate icon indicating copy to clipboard operation
pm2-logrotate copied to clipboard

writeStream.close in Node9.x throw error

Open my9074 opened this issue 7 years ago • 1 comments
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

my9074 avatar May 26 '18 01:05 my9074

Feel free to send a quick PR

Unitech avatar May 26 '18 07:05 Unitech