-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Logging depwarn cleanup #25239
Logging depwarn cleanup #25239
Conversation
* Temporariliy reinstate redirection for Base.display_error(). Uses of this (via logging(..., kind=:error)) will get a depwarn via the logging() function. * Move tests of deprecated functionality to deprecation_exec, so that they'll be executed without --depwarn=error
This is passing tests so feel free to merge when you feel it's ready! |
if !isempty(st) | ||
io = redirect(io, log_error_to, st[1]) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevengj by the way, here's an answer to your question about log_error_to
- for the moment I've reinstated it exactly as it was used inside display_error
. I think it was a bit of a misfeature if used to capture REPL errors, but it's easy to preserve the behavior for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point is, this will get removed when the deprecation is removed in 1.0, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. The user should get a depwarn if they ever manage to populate log_error_to
.
Cheers! This was a relatively minor cleanup so I went ahead and merged it without further ado. |
Some cleanup mostly to address problems @stevengj found over at 5d77d1b#r26334167
I also added some license headers which I realized were forgotten from the original PR.
Potentially replaces #25229