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'),