Print the length of the flattened list in debug message

master
Mark Veidemanis 2 years ago
parent eaf9a3c937
commit dc1ed1fe10
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -123,15 +123,15 @@ async def spawn_processing_threads(data):
tasks.append(task)
results = [await task for task in tasks]
# Join the results back from the split list
flat_list = [item for sublist in results for item in sublist]
log.debug(
(
f"Results from processing of {len_data} messages in "
f"{len(split_data)} threads: {len(results)}"
f"{len(split_data)} threads: {len(flat_list)}"
)
)
# Join the results back from the split list
flat_list = [item for sublist in results for item in sublist]
await db.store_kafka_batch(flat_list)
# log.debug(f"Finished processing {len_data} messages")

Loading…
Cancel
Save