Skip to content

Commit 53e5d81

Browse files
SouravSourav
authored andcommitted
remove log lines from build artifacts
1 parent 98f6cdb commit 53e5d81

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bin/helpers/buildArtifacts.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ const sendUpdatesToBstack = async (bsConfig, buildId, args, options, rawArgs) =>
162162
request.post(options, function (err, resp, data) {
163163
if(err) {
164164
utils.sendUsageReport(bsConfig, args, err, Constants.messageTypes.ERROR, 'api_failed_build_artifacts_status_update', null, rawArgs);
165-
logger.error(utils.formatRequest(err, resp, body));
166165
reject(err);
167166
} else {
168167
try {
@@ -204,7 +203,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
204203
let buildDetails = null;
205204
request.get(options, async function (err, resp, body) {
206205
if(err) {
207-
logger.error(utils.formatRequest(err, resp, body));
208206
utils.sendUsageReport(bsConfig, args, err, Constants.messageTypes.ERROR, 'api_failed_build_artifacts', null, rawArgs);
209207
process.exitCode = Constants.ERROR_EXIT_CODE;
210208
} else {
@@ -213,7 +211,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
213211
if(resp.statusCode != 200) {
214212
logger.error('Downloading the build artifacts failed.');
215213
logger.error(`Error: Request failed with status code ${resp.statusCode}`)
216-
logger.error(utils.formatRequest(err, resp, body));
217214
utils.sendUsageReport(bsConfig, args, buildDetails, Constants.messageTypes.ERROR, 'api_failed_build_artifacts', null, rawArgs);
218215
process.exitCode = Constants.ERROR_EXIT_CODE;
219216
} else {
@@ -223,7 +220,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
223220
messageType = Constants.messageTypes.ERROR;
224221
message = Constants.userMessages.DOWNLOAD_BUILD_ARTIFACTS_FAILED.replace('<build-id>', buildId).replace('<machine-count>', BUILD_ARTIFACTS_FAIL_COUNT);
225222
logger.error(message);
226-
logger.error(utils.formatRequest(err, resp, body));
227223
process.exitCode = Constants.ERROR_EXIT_CODE;
228224
} else {
229225
messageType = Constants.messageTypes.SUCCESS;
@@ -245,7 +241,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
245241
}
246242
utils.sendUsageReport(bsConfig, args, err, messageType, errorCode, null, rawArgs);
247243
logger.error(`Error: Request failed with status code ${resp.statusCode}`)
248-
logger.error(utils.formatRequest(err, resp, body));
249244
process.exitCode = Constants.ERROR_EXIT_CODE;
250245
}
251246
}

0 commit comments

Comments
 (0)