Skip to content

Commit

Permalink
Added debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Mar 11, 2020
1 parent 9e3673f commit 14236e8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ export const reindexServiceFactory = (
const indicesState = await esIndicesStateCheck(callAsUser, [indexName]);
const openAndClose = indicesState[indexName] === 'close';
if (indicesState[indexName] === 'close') {
log.debug(`Detected closed index ${indexName}, opening...`);
await callAsUser('indices.open', { index: indexName });
}

Expand Down

0 comments on commit 14236e8

Please sign in to comment.