Skip to content

Commit 956695b

Browse files
authored
Merge pull request #396 from blockchain-intel/kafka-export-rm-print
Change print(data) in Kafka exporter to instead log at the debug level
2 parents 533f516 + d34b28e commit 956695b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blockchainetl/jobs/exporters/kafka_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def export_item(self, item):
3333
item_type = item.get('type')
3434
if item_type is not None and item_type in self.item_type_to_topic_mapping:
3535
data = json.dumps(item).encode('utf-8')
36-
print(data)
36+
logging.debug(data)
3737
return self.producer.send(self.item_type_to_topic_mapping[item_type], value=data)
3838
else:
3939
logging.warning('Topic for item type "{}" is not configured.'.format(item_type))

0 commit comments

Comments
 (0)