@@ -162,7 +162,6 @@ const sendUpdatesToBstack = async (bsConfig, buildId, args, options, rawArgs) =>
162
162
request . post ( options , function ( err , resp , data ) {
163
163
if ( err ) {
164
164
utils . sendUsageReport ( bsConfig , args , err , Constants . messageTypes . ERROR , 'api_failed_build_artifacts_status_update' , null , rawArgs ) ;
165
- logger . error ( utils . formatRequest ( err , resp , body ) ) ;
166
165
reject ( err ) ;
167
166
} else {
168
167
try {
@@ -204,7 +203,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
204
203
let buildDetails = null ;
205
204
request . get ( options , async function ( err , resp , body ) {
206
205
if ( err ) {
207
- logger . error ( utils . formatRequest ( err , resp , body ) ) ;
208
206
utils . sendUsageReport ( bsConfig , args , err , Constants . messageTypes . ERROR , 'api_failed_build_artifacts' , null , rawArgs ) ;
209
207
process . exitCode = Constants . ERROR_EXIT_CODE ;
210
208
} else {
@@ -213,7 +211,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
213
211
if ( resp . statusCode != 200 ) {
214
212
logger . error ( 'Downloading the build artifacts failed.' ) ;
215
213
logger . error ( `Error: Request failed with status code ${ resp . statusCode } ` )
216
- logger . error ( utils . formatRequest ( err , resp , body ) ) ;
217
214
utils . sendUsageReport ( bsConfig , args , buildDetails , Constants . messageTypes . ERROR , 'api_failed_build_artifacts' , null , rawArgs ) ;
218
215
process . exitCode = Constants . ERROR_EXIT_CODE ;
219
216
} else {
@@ -223,7 +220,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
223
220
messageType = Constants . messageTypes . ERROR ;
224
221
message = Constants . userMessages . DOWNLOAD_BUILD_ARTIFACTS_FAILED . replace ( '<build-id>' , buildId ) . replace ( '<machine-count>' , BUILD_ARTIFACTS_FAIL_COUNT ) ;
225
222
logger . error ( message ) ;
226
- logger . error ( utils . formatRequest ( err , resp , body ) ) ;
227
223
process . exitCode = Constants . ERROR_EXIT_CODE ;
228
224
} else {
229
225
messageType = Constants . messageTypes . SUCCESS ;
@@ -245,7 +241,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
245
241
}
246
242
utils . sendUsageReport ( bsConfig , args , err , messageType , errorCode , null , rawArgs ) ;
247
243
logger . error ( `Error: Request failed with status code ${ resp . statusCode } ` )
248
- logger . error ( utils . formatRequest ( err , resp , body ) ) ;
249
244
process . exitCode = Constants . ERROR_EXIT_CODE ;
250
245
}
251
246
}
0 commit comments