File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/core/src/codewhisperer/service/transformByQ Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,13 @@ export async function uploadArtifactToS3(
109
109
) {
110
110
throwIfCancelled ( )
111
111
try {
112
+ const uploadFileByteSize = ( await fs . promises . stat ( fileName ) ) . size
112
113
getLogger ( ) . info (
113
- `Uploading zip at ${ fileName } with checksum ${ sha256 } using uploadId: ${ resp . uploadId }
114
- and size ${ Math . round ( ( await fs . promises . stat ( fileName ) ) . size / 1000 ) } kB`
114
+ `Uploading zip at %s with checksum %s using uploadId: %s and size %s kB` ,
115
+ fileName ,
116
+ sha256 ,
117
+ resp . uploadId ,
118
+ Math . round ( uploadFileByteSize / 1000 )
115
119
)
116
120
117
121
const apiStartTime = Date . now ( )
@@ -124,7 +128,7 @@ export async function uploadArtifactToS3(
124
128
codeTransformSessionId : CodeTransformTelemetryState . instance . getSessionId ( ) ,
125
129
codeTransformUploadId : resp . uploadId ,
126
130
codeTransformRunTimeLatency : calculateTotalLatency ( apiStartTime ) ,
127
- codeTransformTotalByteSize : ( await fs . promises . stat ( fileName ) ) . size ,
131
+ codeTransformTotalByteSize : uploadFileByteSize ,
128
132
result : MetadataResult . Pass ,
129
133
} )
130
134
getLogger ( ) . info ( `CodeTransformation: Status from S3 Upload = ${ response . status } ` )
You can’t perform that action at this time.
0 commit comments