Skip to content

Commit

Permalink
test: try console.log instead of out-of-scope root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Jun 1, 2023
1 parent a4be6d8 commit 21b1f7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/root/core-root-server-internal/src/bootstrap.ts
Expand Up @@ -79,8 +79,8 @@ export async function bootstrap({ configs, cliArgs, applyConfigOverrides }: Boot

const root = new Root(rawConfigService, env, onRootShutdown);

const cliLogger = root.logger.get('cli');
cliLogger.info('Configurations parsed in this order: ' + env.configs.join(', '));
// eslint-disable-next-line no-console
console.log('Configurations parsed in this order: ' + env.configs.join(', '));

process.on('SIGHUP', () => reloadConfiguration());

Expand All @@ -96,6 +96,7 @@ export async function bootstrap({ configs, cliArgs, applyConfigOverrides }: Boot
});

function reloadConfiguration(reason = 'SIGHUP signal received') {
const cliLogger = root.logger.get('cli');
cliLogger.info(`Reloading Kibana configuration (reason: ${reason}).`, { tags: ['config'] });

try {
Expand Down

0 comments on commit 21b1f7c

Please sign in to comment.