Skip to content

Commit

Permalink
Remove chart plugin logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed May 15, 2020
1 parent 6119854 commit fe8dc06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/plugins/charts/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* under the License.
*/

import { PluginInitializerContext } from 'kibana/server';
import { ChartsServerPlugin } from './plugin';

export const plugin = (initContext: PluginInitializerContext) =>
new ChartsServerPlugin(initContext);
export const plugin = () => new ChartsServerPlugin();
14 changes: 2 additions & 12 deletions src/plugins/charts/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,11 @@

import { i18n } from '@kbn/i18n';
import { schema } from '@kbn/config-schema';

import { PluginInitializerContext, CoreSetup, CoreStart, Plugin, Logger } from 'kibana/server';
import { CoreSetup, Plugin } from 'kibana/server';
import { COLOR_MAPPING_SETTING } from '../common';

export class ChartsServerPlugin implements Plugin<object, object> {
private readonly logger: Logger;

constructor(initializerContext: PluginInitializerContext) {
this.logger = initializerContext.logger.get();
}

public setup(core: CoreSetup) {
this.logger.debug('charts: Setup');

core.uiSettings.register({
[COLOR_MAPPING_SETTING]: {
name: i18n.translate('charts.advancedSettings.visualization.colorMappingTitle', {
Expand All @@ -53,8 +44,7 @@ export class ChartsServerPlugin implements Plugin<object, object> {
return {};
}

public start(core: CoreStart) {
this.logger.debug('charts: Started');
public start() {
return {};
}

Expand Down

0 comments on commit fe8dc06

Please sign in to comment.