diff --git a/lib/db.js b/lib/db.js index c6fd650..8f401cc 100644 --- a/lib/db.js +++ b/lib/db.js @@ -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); @@ -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; @@ -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 {