Skip to content

Commit

Permalink
Elasticsearch index creation - log the exception when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed Dec 6, 2023
1 parent c8eb905 commit 5dd6895
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private void createIndex(String indexId, String indexName, boolean dropIndexFirs
} catch (Exception cnce) {
final String message = String.format("Could not connect to index '%s'. Error is %s. Is the index server up and running?",
defaultIndex, cnce.getMessage());
LOGGER.error(message);
LOGGER.error(message, cnce);
throw new IOException(message);
}
}
Expand Down

0 comments on commit 5dd6895

Please sign in to comment.