Skip to content

Commit 7e36258

Browse files
Merge pull request #342 from sushobhit-lt/log-fixes
skip smartui logs file in exec:stop API
2 parents a04acb1 + 8c2ad3d commit 7e36258

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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.1.26",
3+
"version": "4.1.27",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMes
130130
let resp = await ctx.client.getS3PreSignedURL(ctx);
131131
await ctx.client.uploadLogs(ctx, resp.data.url);
132132
} else {
133-
ctx.log.debug(`Log file to be uploaded via LSRS`)
134-
let resp = ctx.client.sendCliLogsToLSRS(ctx);
133+
ctx.log.debug(`Skipping upload of CLI logs as useLambdaInternal is set`)
134+
// ctx.log.debug(`Log file to be uploaded via LSRS`)
135+
// let resp = ctx.client.sendCliLogsToLSRS(ctx);
135136
}
136137

137138
if (pingIntervalId !== null) {

src/lib/snapshotQueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export default class Queue {
292292

293293
if (!this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name) && !this.ctx.config.allowDuplicateSnapshotNames) {
294294
drop = true;
295-
this.ctx.log.info(`Skipping duplicate SmartUI snapshot '${snapshot.name}'. To capture duplicate screenshots, please set the 'delayedUpload' configuration as true in your config file.`);
295+
this.ctx.log.info(`Skipping duplicate SmartUI snapshot '${snapshot.name}'. To capture duplicate screenshots, please set the 'allowDuplicateSnapshotNames' or 'delayedUpload' configuration as true in your config file.`);
296296
}
297297

298298
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {

0 commit comments

Comments
 (0)