mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
Add signal-handling to allow proper log-rotation.
This commit is contained in:
parent
6088e96a8c
commit
e0fb5d927f
@ -93,6 +93,10 @@ function setup(logs) {
|
||||
},
|
||||
});
|
||||
|
||||
process.on('SIGUSR2', function () {
|
||||
log.reopenFileStreams();
|
||||
});
|
||||
|
||||
module.exports.logger = logger;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user