[esArchiver] log when migrations complete and we're done loading data (#89938)

Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
Spencer 2021-02-01 15:51:00 -07:00 committed by GitHub
parent 3c0d30cbfd
commit 6cf1951b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,9 +98,11 @@ export async function loadAction({
// If we affected the Kibana index, we need to ensure it's migrated...
if (Object.keys(result).some((k) => k.startsWith('.kibana'))) {
await migrateKibanaIndex({ client, kbnClient });
log.debug('[%s] Migrated Kibana index after loading Kibana data', name);
if (kibanaPluginIds.includes('spaces')) {
await createDefaultSpace({ client, index: '.kibana' });
log.debug('[%s] Ensured that default space exists in .kibana', name);
}
}