From 0c49908ec194b2dc30ba3a3b169846410d989703 Mon Sep 17 00:00:00 2001 From: Rudolf Meijering Date: Wed, 25 Mar 2020 14:46:04 +0100 Subject: [PATCH] Use the default schema factory to create logging config --- src/legacy/server/kbn_server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/legacy/server/kbn_server.js b/src/legacy/server/kbn_server.js index e627c1be29ddd..e06212d87e3e3 100644 --- a/src/legacy/server/kbn_server.js +++ b/src/legacy/server/kbn_server.js @@ -22,6 +22,7 @@ import { constant, once, compact, flatten } from 'lodash'; import { isWorker } from 'cluster'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { fromRoot, pkg } from '../../core/server/utils'; +import { Config } from './config'; import loggingConfiguration from './logging/configuration'; import httpMixin from './http'; import { coreMixin } from './core'; @@ -197,7 +198,8 @@ export default class KbnServer { return await this.server.inject(opts); } - applyLoggingConfiguration(config) { + applyLoggingConfiguration(settings) { + const config = Config.withDefaultSchema(settings); const loggingOptions = loggingConfiguration(config); const subset = { ops: config.get('ops'),