Use logging module for printing

This commit is contained in:
Jan Petykiewicz 2018-07-21 13:39:47 -07:00
parent 4a6a8b6c5d
commit 65e03d67d6

View File

@ -4,6 +4,7 @@ This module contains data structures and functions for reading from and
abstractions for the data contained inside them.
"""
import io
import logging
from . import records
from .records import Modals
@ -15,6 +16,9 @@ from .basic import OffsetEntry, OffsetTable, NString, AString, real_t, Validatio
__author__ = 'Jan Petykiewicz'
logger = logging.getLogger(__name__)
class FileModals:
"""
File-scoped modal variables
@ -141,8 +145,7 @@ class OasisLayout:
else:
raise e
# TODO logging
print(record_id, stream.tell())
logger.info('read_record of type {} at position 0x{:x}'.format(record_id, stream.tell()))
# CBlock
if record_id == 34: