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

remotes/origin/bin-rhel65
Raul Ochoa 10 years ago
parent 2711c9b78c
commit 3b4b5ab298

@ -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
--------------------

@ -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) {

926
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

@ -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": {

Loading…
Cancel
Save