Skip to content

Commit

Permalink
better logging for consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Dec 9, 2015
1 parent f0fcdce commit 7f967ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafkaesque.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def consume(topic, consumer_id, follow):

while True:
cursor, batch = topic.consume(cursor)
logger.debug('Retrieved %s items.', len(batch))
logger.debug('Retrieved %s items from %s to %s.', len(batch), cursor, cursor + len(batch))
if not batch:
if not follow:
logger.debug('Retrieved empty batch (end of stream.)')
Expand Down

0 comments on commit 7f967ac

Please sign in to comment.