Skip to content

Commit

Permalink
blocks.Block: Don't render repr() inside import_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
moralrecordings committed Sep 3, 2021
1 parent 9c8521b commit 6262ff8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mrcrowbar/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def import_data( self, raw_buffer ):

self._field_data = {}

logger.debug( f"{self}: loading fields" )
logger.debug( f"{self.__class__.__name__}: loading fields" )

for name in klass._fields:
if raw_buffer is not None:
Expand Down Expand Up @@ -359,7 +359,9 @@ def import_data( self, raw_buffer ):
for x in utils.diffdump_iter( raw_buffer[: len( test )], test ):
logger.debug( x )
elif test != raw_buffer[: len( test )]:
logger.info( f"{self} export produced changed output from import" )
logger.info(
f"{self.__class__.__name__} export produced changed output from import"
)

# if raw_buffer:
# raw_buffer.release()
Expand Down

0 comments on commit 6262ff8

Please sign in to comment.