@@ -175,7 +175,6 @@ export async function uploadPayload(payloadFileName: string, uploadContext?: Upl
175175 throwIfCancelled ( )
176176 let response = undefined
177177 try {
178- console . log ( 'QCT: about to create upload URL' )
179178 response = await codeWhisperer . codeWhispererClient . createUploadUrl ( {
180179 contentChecksum : sha256 ,
181180 contentChecksumType : CodeWhispererConstants . contentChecksumType ,
@@ -186,17 +185,14 @@ export async function uploadPayload(payloadFileName: string, uploadContext?: Upl
186185 transformByQState . setJobFailureMetadata ( ` (request ID: ${ response . $response . requestId } )` )
187186 }
188187 } catch ( e : any ) {
189- console . log ( 'QCT: error creating upload URL ' + e )
190188 const errorMessage = `The upload failed due to: ${ ( e as Error ) . message } `
191189 getLogger ( ) . error ( `CodeTransformation: CreateUploadUrl error: = ${ e } ` )
192190 throw new Error ( errorMessage )
193191 }
194192
195193 try {
196- console . log ( 'QCT: about to upload artifact' )
197194 await uploadArtifactToS3 ( payloadFileName , response , sha256 , buffer )
198195 } catch ( e : any ) {
199- console . log ( 'QCT: error uploading artifact ' + e )
200196 const errorMessage = ( e as Error ) . message
201197 getLogger ( ) . error ( `CodeTransformation: UploadArtifactToS3 error: = ${ errorMessage } ` )
202198 throw new Error ( errorMessage )
@@ -385,7 +381,6 @@ export async function zipCode(
385381 }
386382 } catch ( e : any ) {
387383 getLogger ( ) . error ( `CodeTransformation: zipCode error = ${ e } ` )
388- console . log ( 'QCT: error zipping: ' + e )
389384 throw Error ( 'Failed to zip project' )
390385 } finally {
391386 if ( logFilePath ) {
@@ -414,7 +409,6 @@ export async function startJob(uploadId: string) {
414409 const sourceLanguageVersion = `JAVA_${ transformByQState . getSourceJDKVersion ( ) } `
415410 const targetLanguageVersion = `JAVA_${ transformByQState . getTargetJDKVersion ( ) } `
416411 try {
417- console . log ( 'QCT: about to start Job' )
418412 const response = await codeWhisperer . codeWhispererClient . codeModernizerStartCodeTransformation ( {
419413 workspaceState : {
420414 uploadId : uploadId ,
@@ -433,7 +427,6 @@ export async function startJob(uploadId: string) {
433427 } catch ( e : any ) {
434428 const errorMessage = `Starting the job failed due to: ${ ( e as Error ) . message } `
435429 getLogger ( ) . error ( `CodeTransformation: StartTransformation error = ${ errorMessage } ` )
436- console . log ( 'QCT: startJob failed: ' + e )
437430 throw new Error ( errorMessage )
438431 }
439432}
@@ -631,7 +624,6 @@ export async function pollTransformationJob(jobId: string, validStates: string[]
631624 transformationJobId : jobId ,
632625 } )
633626 status = response . transformationJob . status !
634- console . log ( 'QCT: status = ' + status )
635627 if ( CodeWhispererConstants . validStatesForBuildSucceeded . includes ( status ) ) {
636628 jobPlanProgress [ 'buildCode' ] = StepProgress . Succeeded
637629 }
0 commit comments