Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #486 from jonsource/feature/log_undelivered_as_error
Browse files Browse the repository at this point in the history
Allow user to decide whether log undelivered messages as warnings or errors
  • Loading branch information
emmettbutler committed Mar 14, 2016
2 parents 5b2d0a1 + f14e776 commit 2b2b2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykafka/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def mark_as_delivered(message_batch):
for msg in mset.messages:
if (non_recoverable or msg.produce_attempt >= self._max_retries):
self._delivery_reports.put(msg, exc)
log.info("Message not delivered!! %r" % exc)
log.error("Message not delivered!! %r" % exc)
else:
msg.produce_attempt += 1
self._produce(msg)
Expand Down

0 comments on commit 2b2b2ac

Please sign in to comment.