Better logging when connecting to mongoDB