Update log message

This commit is contained in:
Aya Morisawa 2016-12-29 20:22:54 +09:00
parent fde9d1bd20
commit 3c521ee488

View File

@ -183,10 +183,10 @@ async function init(): Promise<State> {
// Try to connect to MongoDB // Try to connect to MongoDB
try { try {
const db = await initdb(config); const db = await initdb(config);
log('Info', 'Success to connect to MongoDB'); log('Info', 'Successfully connected', 'MongoDB');
db.close(); db.close();
} catch (e) { } catch (e) {
log('Error', `MongoDB: ${e}`); log('Error', `${e}`, 'MongoDB');
return State.failed; return State.failed;
} }