Skip to content

Commit e0f5dde

Browse files
authored
Merge pull request #219 from parthlambdatest/Dot-4756
[Dot-4756] removed dom from cli log
2 parents dd47a83 + 232ec0c commit e0f5dde

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.0.21",
3+
"version": "4.0.22",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/httpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class httpClient {
5757

5858
async request(config: AxiosRequestConfig, log: Logger): Promise<Record<string, any>> {
5959
log.debug(`http request: ${config.method} ${config.url}`);
60-
if(config && config.data) {
60+
if(config && config.data && !config.data.name) {
6161
log.debug(config.data);
6262
}
6363
return this.axiosInstance.request(config)

src/tasks/finalizeBuild.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { updateLogContext } from '../lib/logger.js';
44
import chalk from 'chalk';
55
import { unlinkSync } from 'fs';
66
import constants from '../lib/constants.js';
7+
import fs from 'fs';
78

89
export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRendererFactory> => {
910
return {
@@ -29,6 +30,8 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
2930
ctx.log.debug(`Closed server`);
3031
let resp = await ctx.client.getS3PreSignedURL(ctx);
3132
await ctx.client.uploadLogs(ctx, resp.data.url);
33+
fs.unlinkSync(constants.LOG_FILE_PATH);
34+
ctx.log.debug(`Log file deleted: ${constants.LOG_FILE_PATH}`);
3235
} catch (error: any) {
3336
ctx.log.debug(error);
3437
}

0 commit comments

Comments
 (0)