Skip to content

Commit

Permalink
remove logs that cannot be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
evanshortiss authored and matzew committed Jul 29, 2016
1 parent a7fafb9 commit e6d0058
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ function mongoConnectionStringOS3(cb){
}

function getMongoConnectionUrl(cb){
logger.info('FH_MBAAS_TYPE=' + process.env.FH_MBAAS_TYPE);
if(process.env.FH_MONGODB_CONN_URL){
logger.debug('Using FH_MONGODB_CONN_URL env var');
return cb(undefined, process.env.FH_MONGODB_CONN_URL);
} else if (process.env.OPENSHIFT_MONGODB_DB_HOST) {
return mongoConnectionStringOS2(cb);
Expand Down Expand Up @@ -105,7 +103,6 @@ var db = function (params, callback) {
function cacheConnectionString(connectionString, callback){
//cache the connection string for the lifetime of this process
if('string' === typeof connectionString) {
logger.debug('caching connection string on FH_MONGODB_CONN_URL env var');
process.env.FH_MONGODB_CONN_URL = connectionString;
} else if ('function' === typeof connectionString) {
callback = connectionString;
Expand All @@ -122,7 +119,6 @@ var db = function (params, callback) {

var fhdb = require('fh-db');
if (process.env.FH_USE_LOCAL_DB || process.env.FH_MONGODB_CONN_URL) {
logger.debug('using local_db');
return fhdb.local_db(params, callback);
}
else {
Expand Down

0 comments on commit e6d0058

Please sign in to comment.