From 3c521ee4885d0bf985487a52e6d18c82d72ddedd Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Dec 2016 20:22:54 +0900 Subject: [PATCH] Update log message --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }