diff --git a/api/src/storage/postgres.js b/api/src/storage/postgres.js index b072179..fbb8682 100644 --- a/api/src/storage/postgres.js +++ b/api/src/storage/postgres.js @@ -74,11 +74,13 @@ async function remove(table, condition, params, type = 'users') { async function checkPostgres() { const status = {}; + console.log("Checking PostgreSQL connections with config:", config); for (const [name, pool] of Object.entries(pools)) { try { await pool.query('SELECT NOW()'); status[name] = 'connected'; } catch (error) { + console.log(`PostgreSQL connection check failed for ${name}:`, error.message); status[name] = 'disconnected'; } }