Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
✨ Also log ElasticSearch trying again error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 21, 2020
1 parent 50db1ed commit c40c06f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@staart/api",
"version": "1.3.153",
"version": "1.3.154",
"main": "index.js",
"repository": "[email protected]:staart/api.git",
"author": "Anand Chowdhary <[email protected]>",
Expand Down Expand Up @@ -91,5 +91,5 @@
"setup"
],
"snyk": true,
"staart-version": "1.3.153"
"staart-version": "1.3.154"
}
4 changes: 4 additions & 0 deletions src/helpers/elasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export const receiveElasticSearchMessage = async () => {
try {
await elasticSearch.index(indexParams);
} catch (error) {
logError(
"ElasticSearch",
`Unable to save record, trying again: ${error}`
);
await redisQueue.sendMessageAsync({
qname: ELASTIC_QUEUE,
message: JSON.stringify({
Expand Down

0 comments on commit c40c06f

Please sign in to comment.