Skip to content

Commit e29f6ef

Browse files
committed
fix trace types
1 parent 7ffe3ef commit e29f6ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/testing/testController/pytest/pytestExecutionAdapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as path from 'path';
66
import * as net from 'net';
77
import { IConfigurationService, ITestOutputChannel } from '../../../common/types';
88
import { createDeferred, Deferred } from '../../../common/utils/async';
9-
import { traceLog, traceVerbose } from '../../../logging';
9+
import { traceError, traceLog, traceVerbose } from '../../../logging';
1010
import { DataReceivedEvent, ExecutionTestPayload, ITestExecutionAdapter, ITestServer } from '../common/types';
1111
import {
1212
ExecutionFactoryCreateWithEnvironmentOptions,
@@ -154,7 +154,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
154154
spawnOptions.extraVariables.RUN_TEST_IDS_PORT = pytestRunTestIdsPort;
155155
})
156156
.catch((error) => {
157-
traceVerbose('Error starting server:', error);
157+
traceError('Error starting server:', error);
158158
});
159159

160160
if (debugBool) {
@@ -177,7 +177,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
177177
const runArgs = [scriptPath, ...testArgs];
178178

179179
await execService?.exec(runArgs, spawnOptions).catch((ex) => {
180-
traceVerbose(`Error while running tests: ${testIds}\r\n${ex}\r\n\r\n`);
180+
traceError(`Error while running tests: ${testIds}\r\n${ex}\r\n\r\n`);
181181
return Promise.reject(ex);
182182
});
183183
}

0 commit comments

Comments
 (0)