Reduce log spam (#543)

This commit is contained in:
cybermaggedon 2025-09-30 16:04:07 +01:00 committed by GitHub
parent 52b133fc86
commit b7bf7388aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -599,8 +599,7 @@ def _send_to_trustgraph(objects, api_url, flow, batch_size=1000):
imported_count += 1
if imported_count % 100 == 0:
logger.info(f"Imported {imported_count}/{len(objects)} records...")
print(f"✅ Imported {imported_count}/{len(objects)} records...")
logger.debug(f"Imported {imported_count}/{len(objects)} records...")
except Exception as e:
logger.error(f"Failed to send record {imported_count + 1}: {e}")