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

Add logging override for 0.7 #667

Closed
wants to merge 2 commits into from

Conversation

staticfloat
Copy link
Sponsor Member

0.7 has a new logging infrastructure, which saves the output stream (e.g. Base.stderr) within itself. We need to override that if we want to receive things like warn() or info(). This is not the most elegant way this could be done, but it does seem to work (and passes its own test suite on 0.7)

@staticfloat
Copy link
Sponsor Member Author

Hmmm, although things seem to be getting captured, they do not seem to be getting communicated to the browser.

Julia 0.7 changed the `String()` constructor to deplete `Vector{UInt8}`
arguments, so we must `copy()` them first to avoid clobbering.
@staticfloat
Copy link
Sponsor Member Author

Ah, found it. String(d) was clobbering d, so we need to copy it first.

@stevengj
Copy link
Member

stevengj commented Jun 19, 2018

See also JuliaLang/julia#26798.

@fredrikekre fredrikekre mentioned this pull request Jul 5, 2018
@stevengj
Copy link
Member

stevengj commented Jul 6, 2018

Closing in favor of #671

@stevengj stevengj closed this Jul 6, 2018
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