From 9e28262b02330a855adc943b68ebc25003af6fb5 Mon Sep 17 00:00:00 2001 From: "@s.roertgen" Date: Thu, 20 Apr 2023 12:34:27 +0200 Subject: [PATCH] add statement if elasticsearch server was found --- src/elastic/checkElastic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elastic/checkElastic.js b/src/elastic/checkElastic.js index 8f0cb6d..813c43d 100644 --- a/src/elastic/checkElastic.js +++ b/src/elastic/checkElastic.js @@ -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..."