Skip to content

Commit

Permalink
Use the default schema factory to create logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Mar 25, 2020
1 parent f3c607c commit 0c49908
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/legacy/server/kbn_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 0c49908

Please sign in to comment.