diff --git a/api/src/db.ts b/api/src/db.ts index 4a3bcae..caefbe5 100644 --- a/api/src/db.ts +++ b/api/src/db.ts @@ -14,7 +14,7 @@ export default async function buildDBClient(): Promise { logger.info('Connected successfully to MongoDB'); return db; } catch (error) { - logger.error('Failed to connect to MongoDB', error); + logger.error(`Failed to connect to MongoDB: ${error}`); throw error; } }