Commit 34decb9bcdeb619e2f6c3506f4d740d03b45cba7
Committed by
Philippe Lagadec
1 parent
348fcb5b
temp: minor log stuff
Showing
2 changed files
with
2 additions
and
0 deletions
oletools/msodde.py
| @@ -722,6 +722,7 @@ def process_xlsx(filepath, filed_filter_mode=None): | @@ -722,6 +722,7 @@ def process_xlsx(filepath, filed_filter_mode=None): | ||
| 722 | def process_file(filepath, field_filter_mode=None): | 722 | def process_file(filepath, field_filter_mode=None): |
| 723 | """ decides which of process_doc/x or process_xls/x to call """ | 723 | """ decides which of process_doc/x or process_xls/x to call """ |
| 724 | if olefile.isOleFile(filepath): | 724 | if olefile.isOleFile(filepath): |
| 725 | + log.debug('checking streams to see whether this is xls') | ||
| 725 | if xls_parser.is_xls(filepath): | 726 | if xls_parser.is_xls(filepath): |
| 726 | return process_xls(filepath) | 727 | return process_xls(filepath) |
| 727 | else: | 728 | else: |
oletools/xls_parser.py
| @@ -390,6 +390,7 @@ def test(*filenames): | @@ -390,6 +390,7 @@ def test(*filenames): | ||
| 390 | for filename in filenames: | 390 | for filename in filenames: |
| 391 | logging.info('checking file {0}'.format(filename)) | 391 | logging.info('checking file {0}'.format(filename)) |
| 392 | if not olefile.isOleFile(filename): | 392 | if not olefile.isOleFile(filename): |
| 393 | + logging.info('not an ole file - skip') | ||
| 393 | continue | 394 | continue |
| 394 | xls = XlsFile(filename) | 395 | xls = XlsFile(filename) |
| 395 | 396 |