From 3eb18ef19901aa56e2a12a8382ed519d6ca9ff19 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 7 Feb 2017 22:23:05 +0530 Subject: [PATCH] More logs --- camelot/lattice.py | 2 +- camelot/stream.py | 2 +- tools/camelot | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/camelot/lattice.py b/camelot/lattice.py index d1088d0..f28c09e 100644 --- a/camelot/lattice.py +++ b/camelot/lattice.py @@ -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))) diff --git a/camelot/stream.py b/camelot/stream.py index 7d5abe8..e272421 100644 --- a/camelot/stream.py +++ b/camelot/stream.py @@ -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))) diff --git a/tools/camelot b/tools/camelot index f32c841..bf96665 100755 --- a/tools/camelot +++ b/tools/camelot @@ -370,6 +370,8 @@ if __name__ == '__main__': else: p.append({'start': int(r), 'end': int(r)}) + logger.info('Applying {0} method on {1}'.format(args[''], + os.path.basename(filename))) margins = (float(args['--cmargin']), float(args['--lmargin']), float(args['--wmargin'])) if args[''] == 'lattice':