From a0b9b10bb47777849ae6201373c968c57d466507 Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 24 May 2024 11:37:34 +0200 Subject: [PATCH] refactor: use static string for MongoDB connection error log The error message displayed when the MongoDB connection fails has been changed to use a static string. This is a small refactoring change that can result in more predictable log messages and easier debugging. --- src/services/databases/mongodb.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/databases/mongodb.service.ts b/src/services/databases/mongodb.service.ts index 8b007d6..7b6e16e 100644 --- a/src/services/databases/mongodb.service.ts +++ b/src/services/databases/mongodb.service.ts @@ -19,7 +19,7 @@ export class MongodbService { this.logs.debug("Connected to MongoDB", "All databases"); }); } catch (error) { - this.logs.error(`Error connecting to MongoDB:`, error); + this.logs.error("Error connecting to MongoDB:", error); throw new Error(); } }