Skip to content

Commit

Permalink
Merge pull request #396 from blockchain-intel/kafka-export-rm-print
Browse files Browse the repository at this point in the history
Change print(data) in Kafka exporter to instead log at the debug level
  • Loading branch information
medvedev1088 committed Sep 26, 2022
2 parents 533f516 + d34b28e commit 956695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchainetl/jobs/exporters/kafka_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def export_item(self, item):
item_type = item.get('type')
if item_type is not None and item_type in self.item_type_to_topic_mapping:
data = json.dumps(item).encode('utf-8')
print(data)
logging.debug(data)
return self.producer.send(self.item_type_to_topic_mapping[item_type], value=data)
else:
logging.warning('Topic for item type "{}" is not configured.'.format(item_type))
Expand Down

0 comments on commit 956695b

Please sign in to comment.