Add logging for database connection status and host
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user