-
Notifications
You must be signed in to change notification settings - Fork 289
Add support for error logging (e.g. bad font instance keys) to be added to the renderer errors list. #1678
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
Comments
There's a couple of ways I can see to do this:
These are for errors that you typically want to assert on during development etc, so they are a bit different than the issue to make logging available to WR. Alternatively, we could decide we don't need this and just support logging infrastructure only. Any preferences on how this would be implemented @jrmuizel @nical @kvark ? |
I'd slightly prefer to route this via |
My only concern is that @jrmuizel expressed that in this particular case (a font instance failing to exist) he'd want to assert in a debug build, and it's very easy to miss an error log during development, compared to an assert. |
@glennw technically, nothing would stop our log handler to assert in place under specific conditions (debug build, message severity, settings, etc). Bonus points comparing to Edit: on a second thought, I'm not sure about the stack |
That's a good point about the stack trace, though - it'd be handy to have that when the error occurs. Which probably makes me lean towards option (2) above or just using logging, like you said, if that works. |
No description provided.
The text was updated successfully, but these errors were encountered: