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

print output from info and warnings in one shot, to prevent interleaving when used async #24530

Merged
merged 1 commit into from
Nov 11, 2017

Conversation

KristofferC
Copy link
Sponsor Member

Fixes #21348

buf = IOBuffer()
iob = redirect(IOContext(buf, io), log_info_to, :info)
print_with_color(info_color(), iob, prefix; bold = true)
println_with_color(info_color(), iob, chomp(string(msg...)))
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

The call to string here is kind of redundant now.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Is it? I thought chomp needs a single string?

@ararslan
Copy link
Member

Test failures appear unrelated. FreeBSD froze, macOS got a spurious interrupt, and Circle is just being weird.

@ararslan ararslan merged commit 1cd62b3 into master Nov 11, 2017
@ararslan ararslan deleted the kc/info_race branch November 11, 2017 22:38
ararslan pushed a commit that referenced this pull request Nov 11, 2017
ararslan pushed a commit that referenced this pull request Nov 14, 2017
ararslan pushed a commit that referenced this pull request Nov 21, 2017
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

3 participants