0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00

Add signal-handling to allow proper log-rotation.

This commit is contained in:
Mikhail T 2017-12-05 11:42:14 -05:00
parent 6088e96a8c
commit e0fb5d927f

View file

@ -93,6 +93,10 @@ function setup(logs) {
},
});
process.on('SIGUSR2', function () {
log.reopenFileStreams();
});
module.exports.logger = logger;
}