mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Merge pull request #424 from UnitedMarsupials/master
fix: add signal-handling to allow proper log-rotation.
This commit is contained in:
commit
8e815e2353
2 changed files with 6 additions and 0 deletions
|
@ -93,6 +93,10 @@ function setup(logs) {
|
|||
},
|
||||
});
|
||||
|
||||
process.on('SIGUSR2', function() {
|
||||
Logger.reopenFileStreams();
|
||||
});
|
||||
|
||||
module.exports.logger = logger;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ logs:
|
|||
- {type: file, path: verdaccio.log, level: info}
|
||||
```
|
||||
|
||||
Use `SIGUSR2` to notify the application, the log-file was rotated and it needs to reopen it.
|
||||
|
||||
### Configuration
|
||||
|
||||
Property | Type | Required | Example | Support | Description
|
||||
|
|
Loading…
Reference in a new issue