Changeset 1fb7060 in ammosreader


Ignore:
Timestamp:
05/28/23 11:51:46 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource
Children:
1de11fa
Parents:
82f4e7d
Message:

debug code added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosSocketSource.py

    r82f4e7d r1fb7060  
    1212    def read_bytes(self, bytes_to_read):
    1313        byte_array = []
    14 
     14        logger.info("Start reading bytes from socket")
    1515        try:
    1616            while len(b''.join(byte_array)) < bytes_to_read:
     
    2323                logger.info("Got %s bytes of %s remaining", len(new_bytes), bytes_to_read - len(b''.join(byte_array)))
    2424                byte_array.append(new_bytes)
     25                print(byte_array)
    2526        except TimeoutError:
     27            logger.info("Timeout error while reading from socket")
    2628            return None
    2729        return b''.join(byte_array)
Note: See TracChangeset for help on using the changeset viewer.