From 8a827582c645bba9b55705c0dfb021e215e62db1 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 16 Feb 2021 00:06:22 +0000 Subject: [PATCH] Update database.js --- src/modules/database.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/database.js b/src/modules/database.js index 0011f69..c28b28c 100644 --- a/src/modules/database.js +++ b/src/modules/database.js @@ -42,18 +42,22 @@ module.exports = (log) => { switch (type) { case 'mysql': database = `mysql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`; + log.info('Using MySQL as database backend'); break; case 'mongo': case 'mongodb': database = `mongodb://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`; + log.info('Using MongoDB as database backend'); break; case 'postgre': case 'postgres': case 'postgresql': database = `postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`; + log.info('Using Postgres as database backend'); break; default: // sqlite database = `sqlite://${path('./user/database.sqlite')}`; + log.info('Using SQLite as database backend'); break; }