From 91a5cc9dcdf2a1b5ced9690e447ebc6a30babc49 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 18 Oct 2024 13:44:09 +0200 Subject: [PATCH] backend: Added sequelize config logs --- backend/src/server.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/backend/src/server.ts b/backend/src/server.ts index c7ede234..6150de67 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -22,7 +22,12 @@ import { CALL_AWS_REGION, CALL_LOG_LEVEL, CALL_NAME_ID, - SERVER_CORS_ORIGIN + SERVER_CORS_ORIGIN, + DB_HOST, + DB_DIALECT, + DB_NAME, + DB_USER, + DB_PASSWORD } from './config.js'; import { embeddedRouter } from './routes/embedded.routes.js'; @@ -92,6 +97,14 @@ const logEnvVars = () => { console.log('CALL S3 SECRET KEY:', credential('****' + CALL_S3_SECRET_KEY.slice(-3))); console.log('CALL AWS REGION:', text(CALL_AWS_REGION)); console.log('---------------------------------------------------------'); + console.log('Sequelize Configuration'); + console.log('---------------------------------------------------------'); + console.log('DB NAME:', text(DB_NAME)); + console.log('BD DIALECT:', text(DB_DIALECT)); + console.log('DB HOST:', text(DB_HOST)); + console.log('DB USER:', credential('****' + DB_USER.slice(-3))); + console.log('DB PASSWORD:', credential('****' + DB_PASSWORD.slice(-3))); + console.log('---------------------------------------------------------'); }; const startServer = (app: express.Application) => {