Skip to content

Commit

Permalink
Removes generic exception handler as it's useless.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Elizondo committed Nov 7, 2024
1 parent 315abc7 commit eb07ef9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ import { Kafka, Producer } from 'kafkajs';
import { resolve } from 'path';
import { Connection, ConnectionOptions, createConnection } from 'typeorm';

process.on('unhandledRejection', (reason, promise) => {
logger.fatal('Unhandled Rejection:', reason);
process.exit(1);
});

config({ path: resolve(__dirname, '../../.env') });

let producer: Producer | null = null;
Expand Down

0 comments on commit eb07ef9

Please sign in to comment.