From b011e5aab93c8e660b895a728b487a223ca7420e Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 1 Feb 2021 15:51:00 -0700 Subject: [PATCH] [esArchiver] log when migrations complete and we're done loading data (#89938) Co-authored-by: spalger --- packages/kbn-es-archiver/src/actions/load.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/kbn-es-archiver/src/actions/load.ts b/packages/kbn-es-archiver/src/actions/load.ts index cf41594e3c1d0..592fb3ff90af8 100644 --- a/packages/kbn-es-archiver/src/actions/load.ts +++ b/packages/kbn-es-archiver/src/actions/load.ts @@ -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); } }