-
Notifications
You must be signed in to change notification settings - Fork 182
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
Use more log::warns in the code #2648
Comments
+1 to logging, -1 to panicking based on a feature. We should condition on |
Should the warnings be behind a feature? Should we route all the warnings through an intermediate crate like icu_provider? Discuss with: |
+1 behind a feature, am ambivalent about routing through icu_provider but I think that makes sense as a global toggle instead of adding features everywhere |
@Manishearth proposal: the feature exists in 2 places:
Conclusion:
|
|
It would be nice if all ICU4X docs tests and unit tests would have logging enabled. Currently we have logs in the code to catch possibly-errorful conditions, but those logs are suppressed, making it difficult to debug (@atcupps). Context: The use case is that if we don't recognize a calendar BCP-47 identifier, we fall back to the locale's default calendar, which is correct, expected logic, and we have a warning printed when this fallback occurs, but that warning is not being printed in unit tests. |
We have a bunch of debug asserts that could probably be log::warn for better user experience.
Perhaps also have a
strict_assert
feature that switches between warning and panicking for testing purposes,.The text was updated successfully, but these errors were encountered: