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