Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Q Code Transform: Improve UploadZip logging #5009

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

tincheng
Copy link
Contributor

Problem

This is a minor change to help customer troubleshoot issues related to file upload.

Solution

Log temporary file path and file size to be uploaded within IDE log.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tincheng tincheng changed the title Improve UploadZip logging Amazon Q Code Transform: Improve UploadZip logging May 16, 2024
@tincheng tincheng marked this pull request as ready for review May 16, 2024 17:41
@tincheng tincheng requested a review from a team as a code owner May 16, 2024 17:41
const uploadFileByteSize = (await fs.promises.stat(fileName)).size
getLogger().info(
`Uploading zip at %s with checksum %s using uploadId: %s and size %s kB`,
fileName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: is this fileName a full (relative/absolute) path? This variable could be better named if so

@tincheng tincheng merged commit 68d2e3b into aws:master May 16, 2024
14 checks passed
@tincheng tincheng deleted the log branch May 16, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants