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

fix(bulk-model-sync-lib): use carriage returns only on TTYs #363

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

languitar
Copy link
Contributor

The implemented progress reporting in the ModelImporter always used carriage returns to report progress. This only works in terminals and breaks incremental logging in setups like k8s.

This commit tries to detect if running in a terminal and if not, resorts to logging calls for progress reporting. Logging output is reduced to avoid excessive spam in captured log file.

slisson
slisson previously approved these changes Dec 18, 2023
The implemented progress reporting in the ModelImporter always used
carriage returns to report progress. This only works in terminals and
breaks incremental logging in setups like k8s.

This commit tries to detect if running in a terminal and if not, resorts
to logging calls for progress reporting. Logging output is reduced to
avoid excessive spam in captured log file.
@languitar
Copy link
Contributor Author

I've rebased this to the current main.

@languitar languitar merged commit f54cdb3 into main Dec 21, 2023
13 checks passed
@languitar languitar deleted the bugfix/progress-without-ttys branch December 21, 2023 12:01
@slisson
Copy link
Member

slisson commented Dec 21, 2023

🎉 This PR is included in version 3.17.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants