Add logging for database connection status and host

This commit is contained in:
2025-12-21 00:09:28 +01:00
parent 683eabecdd
commit d67c8b5ac1

View File

@@ -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();