-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Allow app to turn off printing errors to logcat #4665
Comments
This is a valid point, but on the flip side it's helpful for us to have some logging enabled by default, so that when less advanced developers file "playback doesn't work" type issues, there's something in the logs to go on. We could leave the logging on by default and add a way of disabling it. Is it really important or worth it though? Is the logging causing any non-trivial issues for you? Thanks! |
Upon startup, we run a test (see #3835) that always causes ExoPlayer to fail (the failure error is what matters for the purpose of the test). We don't want this to be printed to the logcat because it looks like something bad has happened. So yes, an ability to turn it off will be great. And I agree that leaving it on by default is probably a good thing. |
Hi @ojw28, appreciate your response here. |
Ack. We'll probably need to redirect all |
Currently there is no way to disable (or reduce) the logcat output generated by ExoPlayer. Issue:#4665 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213421072
@ojw28 I believe this can be closed with the release of 2.9.0, right? |
Believe so; thanks! |
Issue description
When there are playback errors, ExoPlayer sends them to logcat in addition to reporting via listeners:
I believe the player should not print to logcat. The app listens to
onPlayerError()
and it can decide to log these errors according to its own logic.Version of ExoPlayer being used
2.8.3
The text was updated successfully, but these errors were encountered: