Skip to content

Commit

Permalink
add statement if elasticsearch server was found
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed Apr 20, 2023
1 parent b054cc1 commit 9e28262
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elastic/checkElastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const recIndex = config.es_index;
export async function checkElastic(client) {
try {
await client.ping();
console.log("elasticsearch server found.");
} catch (error) {
console.error(
"elasticsearch server not found. Please make sure elastic is running. Stopping..."
Expand Down

0 comments on commit 9e28262

Please sign in to comment.