some console.logs at boot

This commit is contained in:
Lamp 2018-07-14 15:19:18 -07:00
parent bb900f1857
commit 2ac385bc71
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 3 additions and 0 deletions

View File

@ -10,9 +10,12 @@ global.dbClient = new (require('pg').Client)({
connectionString: process.env.DATABASE_URL,
ssl: !testmode,
});
console.log("Connecting to Postgres…")
dbClient.connect().then(function(){
console.log("Connecting to MongoDB…")
(require('mongodb').MongoClient).connect(config.MONGODB_URI).then(client=>{
global.mdbClient = client;
console.log("Connecting to Discord…")
dClient.login(config.DISCORD_TOKEN);
});
});