Commit eacda7fdbc91a9c1e6ee1baa8dd303522ca186f3

Authored by Pavol Plaskoň
1 parent 60251783

Use only module-specific logger in the ppt_parser module.

Only one logger should be used. Using logger of the main application prevents
from disabling ppt_parser log messages, ppt_parser-specific logger can be
controlled via enable_logging().
Showing 1 changed file with 2 additions and 2 deletions
oletools/ppt_parser.py
... ... @@ -1423,7 +1423,7 @@ class PptParser(object):
1423 1423 .. seealso:: search_vba_storage
1424 1424 """
1425 1425  
1426   - logging.debug('looking for VBA info containers')
  1426 + log.debug('looking for VBA info containers')
1427 1427  
1428 1428 pattern = VBAInfoContainer.generate_pattern(
1429 1429 rec_len=VBAInfoContainer.RECORD_LENGTH) \
... ... @@ -1475,7 +1475,7 @@ class PptParser(object):
1475 1475 .. seealso:: :py:meth:`search_vba_info`
1476 1476 """
1477 1477  
1478   - logging.debug('looking for VBA storage objects')
  1478 + log.debug('looking for VBA storage objects')
1479 1479 for obj_type in (ExternalObjectStorageUncompressed,
1480 1480 ExternalObjectStorageCompressed):
1481 1481 # re-position stream at start
... ...