Skip to content

Commit 6247018

Browse files
authored
Merge pull request #108 from parthlambdatest/Dot-3170
used ctx.info for upload image message
2 parents 38fcd9c + 65d2e51 commit 6247018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/screenshot.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function uploadScreenshots(ctx: Context): Promise<void> {
183183
const relativeFilePath = path.join(relativePath, file);
184184

185185
if (stat.isDirectory() && ctx.options.ignorePattern.includes(relativeFilePath)) {
186-
ctx.log.debug(`Ignoring Directory ${relativeFilePath}`)
186+
ctx.log.info(`Ignoring Directory ${relativeFilePath}`)
187187
continue; // Skip this path
188188
}
189189

@@ -195,7 +195,7 @@ export async function uploadScreenshots(ctx: Context): Promise<void> {
195195
const fileBuffer = fs.readFileSync(filePath);
196196

197197
if (!isImage(fileBuffer)) {
198-
ctx.log.debug(`File ${filePath} is not a valid ${fileExtension} image. Skipping.`);
198+
ctx.log.info(`File ${filePath} is not a valid ${fileExtension} image. Skipping.`);
199199
continue;
200200
}
201201

@@ -209,7 +209,7 @@ export async function uploadScreenshots(ctx: Context): Promise<void> {
209209
if (!ctx.options.ignoreResolutions) {
210210
const dimensions = getImageDimensions(filePath);
211211
if (!dimensions) {
212-
ctx.log.debug(`Unable to determine dimensions for image: ${filePath}`)
212+
ctx.log.info(`Unable to determine dimensions for image: ${filePath}`)
213213
} else {
214214
const width = dimensions.width;
215215
const height = dimensions.height;
@@ -218,7 +218,7 @@ export async function uploadScreenshots(ctx: Context): Promise<void> {
218218
}
219219

220220
await ctx.client.uploadScreenshot(ctx.build, filePath, ssId, 'default', viewport, ctx.log);
221-
ctx.log.debug(`${filePath} : uploaded successfully`)
221+
ctx.log.info(`${filePath} : uploaded successfully`)
222222
noOfScreenshots++;
223223
}
224224
}

0 commit comments

Comments
 (0)