Skip to content

Commit

Permalink
Merge pull request #61 from shikshalokam/kafkalogsChange
Browse files Browse the repository at this point in the history
kafka logs fixes
  • Loading branch information
aks30 authored Feb 2, 2022
2 parents 1f24bb2 + 5962762 commit 8711599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/kafka.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var _sendToKafkaConsumers = function (topic,host) {

console.log("-------Kafka log starts here------------------");
console.log("Topic Name: ", topic);
console.log("Message: ", JSON.stringify(message));
console.log(JSON.stringify(message));
console.log("-------Kafka log ends here------------------");

if (message && message.topic === SUBMISSION_TOPIC) {
Expand Down
2 changes: 1 addition & 1 deletion generics/kafka/producers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const pushMessageToKafka = function(payload) {

console.log("-------Kafka log starts here------------------");
console.log("Topic Name: ", payload[0].topic);
console.log("Message: ", JSON.stringify(payload));
console.log(JSON.stringify(payload));
console.log("-------Kafka log ends here------------------");

kafkaClient.kafkaProducer.send(payload, (err, data) => {
Expand Down

0 comments on commit 8711599

Please sign in to comment.