-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Modernize the error handler #32565
Modernize the error handler #32565
Conversation
ChristophWurst
commented
May 24, 2022
- Make it a dynamic class with dynamic methods
- Make the logger a constructor arg -> it is always available
- Fix that some deprecations were logged as errors (E_DEPRECATED vs E_USER_DEPRECATED)
/backport 96a91cb to stable24 |
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.
Looks good, just need a cs:fix run
1992a60
to
5d20c7d
Compare
Tests fail |
I've moved the handler registration outside the constructor to make the class testable. |
66509ba
to
3e66fab
Compare
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.
👍
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
47fd91b
to
4c8ec6d
Compare
@ChristophWurst Will tests still fail on deprecation warnings? We have |
Looks like they do
|
The backport to stable24 failed. Please do this backport manually. |
/backport 4c8ec6d to stable25 |