Skip to content

Commit

Permalink
use ToolingLog instead of console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Sep 13, 2021
1 parent d9bdde0 commit 582febc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/functional_execution_context/tests/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function delay(ms: number) {
export default function ({ getService }: FtrProviderContext) {
const retry = getService('retry');
const supertest = getService('supertest');
const log = getService('log');

async function waitForStatus(
id: string,
Expand All @@ -31,8 +32,7 @@ export default function ({ getService }: FtrProviderContext) {
const { status } = response.body.execution_status;
if (statuses.has(status)) return response.body.execution_status;

// eslint-disable-next-line no-console
console.log(
log.debug(
`waitForStatus(${Array.from(statuses)} for id:${id}): got ${JSON.stringify(
response.body.execution_status
)}, retrying`
Expand Down

0 comments on commit 582febc

Please sign in to comment.