Remove print statements

This commit is contained in:
Mark Veidemanis 2022-11-22 21:43:56 +00:00
parent be0cf231b4
commit 371bce1094
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 0 additions and 4 deletions

4
db.py
View File

@ -127,13 +127,9 @@ async def store_batch(data):
else:
indexmap[INDEX].append(msg)
print("KEYS", indexmap.keys())
for index, index_messages in indexmap.items():
for message in index_messages:
result = await client.index(index=index, body=message)
if index == "internal":
print("INTERNAL RES", result)
if not result["result"] == "created":
log.error(f"Indexing failed: {result}")
log.debug(f"Indexed {len(data)} messages in ES")