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: spinners and log output no longer intermix #4090

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

ericswanson-dfinity
Copy link
Member

Description

Even with self.spinners.suspend(|| self.inner.log(record, values)), spinner and log outputs would sometimes intermix. dfx doesn't have high-volume logging, so this PR changes stderr logging to use sync logging.

How Has This Been Tested?

Tested on another branch that makes more use of progress bars + logging

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

- changed stderr logging to use a sync logger
@ericswanson-dfinity ericswanson-dfinity requested a review from a team as a code owner January 30, 2025 16:36
@ericswanson-dfinity ericswanson-dfinity enabled auto-merge (squash) January 30, 2025 16:57
@ericswanson-dfinity ericswanson-dfinity merged commit 1a7a929 into master Jan 30, 2025
296 checks passed
@ericswanson-dfinity ericswanson-dfinity deleted the ens/sync-log-drain branch January 30, 2025 17:18
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.

2 participants