Skip to content

Commit

Permalink
fix logger error unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Dec 21, 2024
1 parent c102db3 commit 7b8d074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/cron-tasks/src/config/db.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export const pgPool = new Pool({
pgPool.on('connect', (client) => {
// logger.info('[DB][POOL] Connected');
client.on('error', (err) => {
logger.error(getExceptionLog, '[DB][CLIENT][ERROR] Unexpected error on client');
logger.error(getExceptionLog(err), '[DB][CLIENT][ERROR] Unexpected error on client');
});
});

pgPool.on('error', (err, client) => {
logger.error(getExceptionLog, '[DB][POOL][ERROR] Unexpected error on idle client');
logger.error(getExceptionLog(err), '[DB][POOL][ERROR] Unexpected error on idle client');
process.exit(-1);
});

0 comments on commit 7b8d074

Please sign in to comment.