Skip to content

Commit

Permalink
Log message from queue first
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Oct 9, 2024
1 parent b60f708 commit c858472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import namespace from './services/cls';
const app = Consumer.create({
queueUrl: config.services.queue.url,
handleMessage: async (message) => {
const body = JSON.parse(message.Body);
logger.debug('Received message from queue!', { message });

logger.debug('Received message from queue!', { body });
const body = JSON.parse(message.Body);

if ('traceId' in body) {
namespace.set('traceId', body.traceId);
Expand Down

0 comments on commit c858472

Please sign in to comment.