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:
parent
6088e96a8c
commit
e0fb5d927f
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ function setup(logs) {
|
|||
},
|
||||
});
|
||||
|
||||
process.on('SIGUSR2', function () {
|
||||
log.reopenFileStreams();
|
||||
});
|
||||
|
||||
module.exports.logger = logger;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue