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() {
|
async function ensureDbConnected() {
|
||||||
try {
|
try {
|
||||||
|
console.log('Ellenorizzuk az adatbazis kapcsolatot...');
|
||||||
|
console.log('HOST:', process.env.DB_HOST);
|
||||||
|
|
||||||
const connection = await pool.getConnection();
|
const connection = await pool.getConnection();
|
||||||
await connection.ping();
|
await connection.ping();
|
||||||
connection.release();
|
connection.release();
|
||||||
|
|||||||
Reference in New Issue
Block a user