You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/producer.js
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,12 @@ async function setupPgClient() {
30
30
constvalidTopicAndOriginator=(pgOptions.triggerTopics.includes(payload.topic))&&(pgOptions.triggerOriginators.includes(payload.originator))// Check if valid topic and originator
31
31
if(validTopicAndOriginator){
32
32
if(!isFailover){
33
+
logger.info('trying to push on kafka topic')
33
34
awaitpushToKafka(payload)
34
35
audit(payload)
36
+
logger.info('pushed to kafka and added for audit trail')
35
37
}else{
38
+
logger.info('taking backup on dynamodb for reconciliation')
36
39
awaitpushToDynamoDb(payload)
37
40
}
38
41
}else{
@@ -42,17 +45,16 @@ async function setupPgClient() {
0 commit comments