From 3219feed3ab2a31201e14543b0f21c43ea928c96 Mon Sep 17 00:00:00 2001 From: Ahmed Maher Date: Sat, 27 Jul 2024 12:32:28 +0300 Subject: [PATCH] UPDATE: enhancing code logging readiblity. --- database.js | 4 ++-- models/index.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/database.js b/database.js index eb2d280..1c87d78 100644 --- a/database.js +++ b/database.js @@ -15,10 +15,10 @@ const sequelize = new Sequelize(database, username, password, { sequelize .authenticate() .then(() => { - console.log("DB Connection has been established successfully."); + console.log("======> DB Connection has been established successfully."); }) .catch((error) => { - console.error("Unable to connect to the database: ", error); + console.error("======> Unable to connect to the database: ", error); }); // export sequelize connection diff --git a/models/index.js b/models/index.js index 4c7609b..0e5b717 100644 --- a/models/index.js +++ b/models/index.js @@ -56,8 +56,6 @@ db.sync({ force: false }).then(async () => { { name: "Cooling and Heating" }, ]); } - - console.log("Tables Created!"); }); // export tables