Skip to content

Commit e51b5b0

Browse files
committed
Make ES compatibility check and migrations logging more visible
1 parent 134f221 commit e51b5b0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/core/server/saved_objects/saved_objects_service.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,16 @@ export class SavedObjectsService
288288
'Skipping Saved Object migrations on startup. Note: Individual documents will still be migrated when read or written.'
289289
);
290290
} else {
291-
this.logger.debug(
291+
this.logger.info(
292292
'Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...'
293293
);
294294
await this.setupDeps!.elasticsearch.esNodesCompatibility$.pipe(
295295
filter(nodes => nodes.isCompatible),
296296
take(1)
297297
).toPromise();
298298

299-
this.logger.debug('Starting saved objects migration');
299+
this.logger.info('Starting saved objects migrations');
300300
await migrator.runMigrations();
301-
this.logger.debug('Saved objects migration completed');
302301
}
303302

304303
const createRepository = (callCluster: APICaller, extraTypes: string[] = []) => {
@@ -357,14 +356,14 @@ export class SavedObjectsService
357356
savedObjectMappings: this.mappings,
358357
savedObjectMigrations: this.migrations,
359358
savedObjectValidations: this.validations,
360-
logger: this.coreContext.logger.get('migrations'),
359+
logger: this.logger,
361360
kibanaVersion: this.coreContext.env.packageInfo.version,
362361
config: this.setupDeps!.legacyPlugins.pluginExtendedConfig,
363362
savedObjectsConfig,
364363
kibanaConfig,
365364
callCluster: migrationsRetryCallCluster(
366365
adminClient.callAsInternalUser,
367-
this.coreContext.logger.get('migrations'),
366+
this.logger,
368367
migrationsRetryDelay
369368
),
370369
});

0 commit comments

Comments
 (0)