Skip to content

Commit e932461

Browse files
committed
added debug logs
1 parent 062588d commit e932461

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

commands/utils/poller/build_stats.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ function get_completed_build_info(lt_config, session_id, env) {
3030
if (error.response.status == 401) {
3131
reject("Unauthorized");
3232
} else {
33+
console.log("error.response.status - ",error.response.status)
3334
console.log(error.response.data);
34-
reject("No response for build status");
35+
reject("No response for build status when getting completed build info");
3536
}
3637
} else if (error.request) {
3738
// The request was made but no response was received
@@ -139,8 +140,10 @@ function get_build_info(lt_config, session_id,hyperexecute, env, update_status,
139140
return setTimeout(callback, 5000, null);
140141

141142
} else {
143+
console.log(`[DEBUG] Response status is not 200: ${response.status}`);
144+
console.log("response.data - ",response.data)
142145
update_status(false);
143-
return callback("No response for build status");
146+
return callback("No response for build status when getting build info");
144147
}
145148
})
146149
.catch(error => {
@@ -151,8 +154,11 @@ function get_build_info(lt_config, session_id,hyperexecute, env, update_status,
151154
update_status(false);
152155
return callback("Unauthorized");
153156
} else {
157+
console.log('error.response.status - ', error.response)
158+
console.log("error.response.data - ",error.response.data)
159+
console.log("error.response.status - ",error.response.status)
154160
update_status(false);
155-
return callback("No response for build status");
161+
return callback("No response for build status when getting info of build.");
156162
}
157163
} else if (error.request) {
158164
// The request was made but no response was received

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "3.0.40",
3+
"version": "3.0.39",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <[email protected]>",

0 commit comments

Comments
 (0)