Skip to content

Commit

Permalink
chore: menambahkan logger untuk amqp dan trpc di processor
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Oct 13, 2023
1 parent 052b20b commit b3fabf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/processor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const consumeMessagesFromQueue = async () => {

if (!env.AMQP_URL) throw new Error("Diperlukan AQMP URL!");

logger.info(`[MQ] MQ AMQP: ${env.AMQP_URL}`);
logger.info(`[TRPC] TRPC URL: ${env.TRPC_URL}`);

logger.info("[MQ] Connecting to RabbitMQ instance");

const connection = await amqp.connect(env.AMQP_URL);
Expand Down Expand Up @@ -220,5 +223,4 @@ const consumeMessagesFromQueue = async () => {
logger.error(error);
}
};

consumeMessagesFromQueue();

0 comments on commit b3fabf2

Please sign in to comment.