Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Jun 3, 2024
1 parent c34fed0 commit d985a35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ const client = new Client({
port: process.env.POSTGRESQL_DB_PORT ? parseInt(process.env.POSTGRESQL_DB_PORT) : 5432
});

client.on('end', () => console.log('Client has disconnected'));
client.on('error', (err) => console.error('Unexpected error on idle client', err));

export default client;

0 comments on commit d985a35

Please sign in to comment.