From d67c8b5ac1270432e351ccaa35781e14f99a4ab7 Mon Sep 17 00:00:00 2001 From: b3ni15 Date: Sun, 21 Dec 2025 00:09:28 +0100 Subject: [PATCH] Add logging for database connection status and host --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index ccfb857..963d6b1 100644 --- a/src/index.js +++ b/src/index.js @@ -34,6 +34,9 @@ const PORT = Number(process.env.PORT || 4000); async function ensureDbConnected() { try { + console.log('Ellenorizzuk az adatbazis kapcsolatot...'); + console.log('HOST:', process.env.DB_HOST); + const connection = await pool.getConnection(); await connection.ping(); connection.release();