From 454289e0ad2c743c6dd9a39da8000bf35c005f8b Mon Sep 17 00:00:00 2001 From: Bowden Date: Thu, 4 Jan 2018 18:08:12 -0800 Subject: [PATCH] added db connection log message --- src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.ts b/src/app.ts index 21e6668..da41b25 100644 --- a/src/app.ts +++ b/src/app.ts @@ -31,6 +31,7 @@ const app = express(); // Connect to MongoDB const mongoUrl = MONGODB_URI; (mongoose).Promise = bluebird; +logger.debug(`Connecting to database with connection string: ${mongoUrl}`); mongoose.connect(mongoUrl, {useMongoClient: true}).then( () => { /** ready to use. The `mongoose.connect()` promise resolves to undefined. */ }, ).catch(err => {