Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach error handler to statsD socket to prevent crashes on connectio…
…n problem
- Loading branch information
1 parent
41bec96
commit 4222757
Showing
4 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
var debug = require('debug')('abacus:config'); | ||
var config = require('config'); | ||
|
||
// Check for config module. If not existent, export an empty config | ||
try{ | ||
var config = require('config'); | ||
debug('Loading config from node-config'); | ||
module.exports = config.setModuleDefaults('abacus', require('./config/default')); | ||
} | ||
catch(e){ | ||
debug('Setting config to empty object'); | ||
module.exports = {}; | ||
} | ||
module.exports = config.setModuleDefaults('abacus', require('./config/default')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ module.exports = { | |
}, | ||
metricPrefix: 'apps.abacus.' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters