diff --git a/src/index.ts b/src/index.ts index 0fb52c69a0..f70ab6a2bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -183,10 +183,10 @@ async function init(): Promise { // Try to connect to MongoDB try { const db = await initdb(config); - log('Info', 'Success to connect to MongoDB'); + log('Info', 'Successfully connected', 'MongoDB'); db.close(); } catch (e) { - log('Error', `MongoDB: ${e}`); + log('Error', `${e}`, 'MongoDB'); return State.failed; }