@@ -175,7 +175,6 @@ export async function uploadPayload(payloadFileName: string, uploadContext?: Upl
175
175
throwIfCancelled ( )
176
176
let response = undefined
177
177
try {
178
- console . log ( 'QCT: about to create upload URL' )
179
178
response = await codeWhisperer . codeWhispererClient . createUploadUrl ( {
180
179
contentChecksum : sha256 ,
181
180
contentChecksumType : CodeWhispererConstants . contentChecksumType ,
@@ -186,17 +185,14 @@ export async function uploadPayload(payloadFileName: string, uploadContext?: Upl
186
185
transformByQState . setJobFailureMetadata ( ` (request ID: ${ response . $response . requestId } )` )
187
186
}
188
187
} catch ( e : any ) {
189
- console . log ( 'QCT: error creating upload URL ' + e )
190
188
const errorMessage = `The upload failed due to: ${ ( e as Error ) . message } `
191
189
getLogger ( ) . error ( `CodeTransformation: CreateUploadUrl error: = ${ e } ` )
192
190
throw new Error ( errorMessage )
193
191
}
194
192
195
193
try {
196
- console . log ( 'QCT: about to upload artifact' )
197
194
await uploadArtifactToS3 ( payloadFileName , response , sha256 , buffer )
198
195
} catch ( e : any ) {
199
- console . log ( 'QCT: error uploading artifact ' + e )
200
196
const errorMessage = ( e as Error ) . message
201
197
getLogger ( ) . error ( `CodeTransformation: UploadArtifactToS3 error: = ${ errorMessage } ` )
202
198
throw new Error ( errorMessage )
@@ -385,7 +381,6 @@ export async function zipCode(
385
381
}
386
382
} catch ( e : any ) {
387
383
getLogger ( ) . error ( `CodeTransformation: zipCode error = ${ e } ` )
388
- console . log ( 'QCT: error zipping: ' + e )
389
384
throw Error ( 'Failed to zip project' )
390
385
} finally {
391
386
if ( logFilePath ) {
@@ -414,7 +409,6 @@ export async function startJob(uploadId: string) {
414
409
const sourceLanguageVersion = `JAVA_${ transformByQState . getSourceJDKVersion ( ) } `
415
410
const targetLanguageVersion = `JAVA_${ transformByQState . getTargetJDKVersion ( ) } `
416
411
try {
417
- console . log ( 'QCT: about to start Job' )
418
412
const response = await codeWhisperer . codeWhispererClient . codeModernizerStartCodeTransformation ( {
419
413
workspaceState : {
420
414
uploadId : uploadId ,
@@ -433,7 +427,6 @@ export async function startJob(uploadId: string) {
433
427
} catch ( e : any ) {
434
428
const errorMessage = `Starting the job failed due to: ${ ( e as Error ) . message } `
435
429
getLogger ( ) . error ( `CodeTransformation: StartTransformation error = ${ errorMessage } ` )
436
- console . log ( 'QCT: startJob failed: ' + e )
437
430
throw new Error ( errorMessage )
438
431
}
439
432
}
@@ -631,7 +624,6 @@ export async function pollTransformationJob(jobId: string, validStates: string[]
631
624
transformationJobId : jobId ,
632
625
} )
633
626
status = response . transformationJob . status !
634
- console . log ( 'QCT: status = ' + status )
635
627
if ( CodeWhispererConstants . validStatesForBuildSucceeded . includes ( status ) ) {
636
628
jobPlanProgress [ 'buildCode' ] = StepProgress . Succeeded
637
629
}
0 commit comments