diff --git a/src/index.ts b/src/index.ts index 0fb52c69a..f70ab6a2b 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; }