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