diff --git a/pdfminer/lzw.py b/pdfminer/lzw.py index 3ab8147..078ac04 100644 --- a/pdfminer/lzw.py +++ b/pdfminer/lzw.py @@ -3,6 +3,7 @@ from io import BytesIO import six #Python 2+3 compatibility +import logging class CorruptDataError(Exception): pass @@ -89,8 +90,8 @@ class LZWDecoder(object): # just ignore corrupt data and stop yielding there break yield x - #log.debug('nbits=%d, code=%d, output=%r, table=%r' % - # (self.nbits, code, x, self.table[258:])) + logging.debug('nbits=%d, code=%d, output=%r, table=%r' % + (self.nbits, code, x, self.table[258:])) return