Skip to content

Commit

Permalink
Config load : remove verbose log
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolsc committed Nov 20, 2017
1 parent 0234562 commit b46e32d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions loadConfig.js
Expand Up @@ -3,11 +3,11 @@
* Load local config to env
*/
try{

const localConfig = require('./config.local.js');
for (let entry in localConfig){
if (process.env[entry]){
console.log('%s found in process.env too, ignore the local config val\n\t env vars always have precedence', entry);
console.log('%s found in process.env too, ignore the local config val\n\t env vars always have precedence', entry);
}
else{
process.env[entry] = localConfig[entry];
Expand All @@ -16,5 +16,4 @@ try{
}
catch(e){
console.log('No local config found');
console.log(e);
}
}

0 comments on commit b46e32d

Please sign in to comment.