Skip to content

Commit

Permalink
fix(RabbitMQReceiver): add start log
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed Oct 19, 2023
1 parent c2a8a33 commit 752e057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions khl/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ async def start(self):
channel = await connection.channel()
await channel.set_qos(prefetch_count=10)
queue = await channel.declare_queue(self.queue)

log.info('[ init ] launched')

async with queue.iterator() as queue_iter:
async for message in queue_iter:
async with message.process():
Expand Down

0 comments on commit 752e057

Please sign in to comment.