Skip to content

Commit b2ca1d6

Browse files
Merge pull request #529 from ask/A_crc_logging
Better logging for bad CRC
2 parents f83e522 + 706422d commit b2ca1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiokafka/consumer/fetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _unpack_records(self):
214214
if self._check_crcs and not next_batch.validate_crc():
215215
# This iterator will be closed after the exception, so we don't
216216
# try to drain other batches here. They will be refetched.
217-
raise Errors.CorruptRecordException("Invalid CRC")
217+
raise Errors.CorruptRecordException(f"Invalid CRC - {tp}")
218218

219219
if self._isolation_level == READ_COMMITTED and \
220220
next_batch.producer_id is not None:

0 commit comments

Comments
 (0)