From 3c618b9e1bb3efa9c59dfb878a59c044401c0c9c Mon Sep 17 00:00:00 2001 From: nzkarit Date: Sat, 5 May 2018 21:59:13 +1200 Subject: [PATCH] Logging and comment --- ADSB_Encoder.py | 5 +++-- generateAllICAO.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ADSB_Encoder.py b/ADSB_Encoder.py index 1849257..3cc8767 100755 --- a/ADSB_Encoder.py +++ b/ADSB_Encoder.py @@ -84,7 +84,7 @@ def singlePlane(arguments): return samples def manyPlanes(arguments): - logger.info('Processing CSV file') + logger.info('Processing CSV file: %s' % (arguments.csvfile)) samples = bytearray() logger.info('Repeating the message %s times' % (arguments.repeats)) for i in range(0, arguments.repeats): @@ -169,7 +169,8 @@ def threadingCSV(csv): global logger logging.config.fileConfig('logging.cfg') logger = logging.getLogger(__name__) - logger.info('Starting ADSB Encoder') + logger.info('Starting ADSB Encoder threadingCSV entry point') + logger.debug('Being called with the following CSV file: %s' % (csv[0])) logger.debug('The arguments: %s' % (arguments)) data = None if arguments.csvfile == '': diff --git a/generateAllICAO.py b/generateAllICAO.py index 0760a48..dbf3136 100755 --- a/generateAllICAO.py +++ b/generateAllICAO.py @@ -23,7 +23,8 @@ def main(): minICAO = 0x0 maxICAO = 0x3E8 - splitNumber = 10000 + # If the number of planes is less than the split it doesn't work + splitNumber = 100 try: os.stat(directory)