Skip to content

Commit

Permalink
Downgrade "setting up plugin" log to debug (#58776)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover authored Mar 2, 2020
1 parent c90cfe2 commit be0a4c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ describe(`running the plugin-generator via 'node scripts/generate_plugin.js plug
'start',
'--optimize.enabled=false',
'--logging.json=false',
'--logging.verbose=true',
'--migrations.skip=true',
],
cwd: generatedPath,
Expand Down
4 changes: 3 additions & 1 deletion src/core/server/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class PluginWrapper<
public async setup(setupContext: CoreSetup<TPluginsStart>, plugins: TPluginsSetup) {
this.instance = this.createPluginInstance();

this.log.info('Setting up plugin');
this.log.debug('Setting up plugin');

return this.instance.setup(setupContext, plugins);
}
Expand All @@ -112,6 +112,8 @@ export class PluginWrapper<
throw new Error(`Plugin "${this.name}" can't be started since it isn't set up.`);
}

this.log.debug('Starting plugin');

const startContract = await this.instance.start(startContext, plugins);
this.startDependencies$.next([startContext, plugins]);
return startContract;
Expand Down

0 comments on commit be0a4c4

Please sign in to comment.