Reload log files on SIGUSR2

This is an attempt to play more nicely with logrotate
This commit is contained in:
Sandro Santilli 2014-03-28 17:06:44 +01:00
parent e8367b765a
commit 08b8741282
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,10 @@
1.11.0 -- 2014-MM-DD
--------------------
New features:
- Reload log files on SIGUSR2
1.10.1 -- 2014-03-21
-------------------

2
app.js
View File

@ -78,6 +78,8 @@ process.on('SIGUSR1', function() {
process.on('SIGUSR2', function() {
ws.dumpCacheStats();
log4js.configure(log4js_config);
console.log('Log files reloaded');
});
process.on('uncaughtException', function(err) {