From 34decb9bcdeb619e2f6c3506f4d740d03b45cba7 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 24 Nov 2017 11:00:41 +0100 Subject: [PATCH] temp: minor log stuff --- oletools/msodde.py | 1 + oletools/xls_parser.py | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/oletools/msodde.py b/oletools/msodde.py index bd1e7f5..306104e 100644 --- a/oletools/msodde.py +++ b/oletools/msodde.py @@ -722,6 +722,7 @@ def process_xlsx(filepath, filed_filter_mode=None): def process_file(filepath, field_filter_mode=None): """ decides which of process_doc/x or process_xls/x to call """ if olefile.isOleFile(filepath): + log.debug('checking streams to see whether this is xls') if xls_parser.is_xls(filepath): return process_xls(filepath) else: diff --git a/oletools/xls_parser.py b/oletools/xls_parser.py index f032dd6..30f7840 100644 --- a/oletools/xls_parser.py +++ b/oletools/xls_parser.py @@ -390,6 +390,7 @@ def test(*filenames): for filename in filenames: logging.info('checking file {0}'.format(filename)) if not olefile.isOleFile(filename): + logging.info('not an ole file - skip') continue xls = XlsFile(filename) -- libgit2 0.21.4