Closes fd for log files on kill -HUP. Fixes #230

This commit is contained in:
Raul Ochoa 2014-12-02 15:05:28 +01:00
parent 2711c9b78c
commit 3b4b5ab298
4 changed files with 999 additions and 929 deletions

View File

@ -4,6 +4,9 @@
Announcements:
- Upgrades windshaft to 0.32.0
Bugfixes:
- Closes fd for log files on `kill -HUP` (#230)
1.21.0 -- 2014-10-24
--------------------

7
app.js
View File

@ -116,8 +116,11 @@ process.on('SIGUSR2', function() {
});
process.on('SIGHUP', function() {
log4js.configure(log4js_config);
console.log('Log files reloaded');
global.log4js.clearAndShutdownAppenders(function() {
global.log4js.configure(log4js_config);
global.logger = log4js.getLogger();
console.log('Log files reloaded');
});
});
process.on('uncaughtException', function(err) {

1916
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@
"cartodb-psql": "https://github.com/CartoDB/node-cartodb-psql/tarball/0.4.0",
"redis-mpool": "https://github.com/CartoDB/node-redis-mpool/tarball/0.3.0",
"lzma": "~1.3.7",
"log4js": "~0.6.17",
"log4js": "https://github.com/CartoDB/log4js-node/tarball/cdb",
"rollbar": "~0.3.13"
},
"devDependencies": {