More logs

This commit is contained in:
Vinayak Mehta
2017-02-07 22:23:05 +05:30
parent bc86346154
commit 3eb18ef199
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ class Lattice:
ltchar = get_text_objects(layout, ltype="char")
width, height = dim
bname, __ = os.path.splitext(pdfname)
logger.info('Parsing tables from {0}.'.format(bname))
logger.info('Parsing tables from {0}.'.format(os.path.basename(bname)))
if not ltchar:
logger.warning("{0}: PDF has no text. It may be an image.".format(
os.path.basename(bname)))
+1 -1
View File
@@ -301,7 +301,7 @@ class Stream:
ltchar = get_text_objects(layout, ltype="char")
width, height = dim
bname, __ = os.path.splitext(pdfname)
logger.info('Parsing tables from {0}'.format(bname))
logger.info('Parsing tables from {0}.'.format(os.path.basename(bname)))
if not lttextlh:
logger.warning("{0}: PDF has no text. It may be an image.".format(
os.path.basename(bname)))