Add logging

This commit is contained in:
Dieter Blocher
2025-01-29 19:10:24 +00:00
parent 826cfb48c9
commit c3d50d2ac1
4 changed files with 64 additions and 2 deletions

View File

@@ -21,6 +21,8 @@ const connectDB = async () => {
//console.log(`Indexes in ${collectionName}:`);
//console.log(indexes);
console.log("Finish Database Stats.");
} catch (error) {
console.error(error.message);
process.exit(1);