forked from jan/fatamorgana
		
	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.
 | 
			
		||||
"""
 | 
			
		||||
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:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user