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

feat: Log when file not added to source bundle #2146

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Sep 5, 2024

When a file has an invalid (non-UTF-8) encoding, it is skipped from being added to source bundles. Previously, the file was silently skipped. Now, we log when we skip a file.

The logs are emitted at the info level, which is hidden by default (default log level is warn). To see these logs, users will need to set the log level, for example by passing --log-level=info.

Fixes #2135
Fixes #2147

When a file has an invalid (non-UTF-8) encoding, it is skipped from being added to source bundles. Previously, the file was silently skipped. Now, we log when we skip a file.

Fixes #2135
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/log-skipped-non-utf-files branch from a7fec72 to d8808c8 Compare September 9, 2024 12:42
@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) September 9, 2024 12:46
@szokeasaurusrex szokeasaurusrex merged commit 9d4548f into master Sep 9, 2024
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/log-skipped-non-utf-files branch September 9, 2024 12:46
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.

Uploading source files fails in 2.35.0 Log when files are skipped from uploading due to invalid encoding
2 participants