The subject line says it all. Is there any way to suppress warnings in the console? Perhaps by intercepting the exception? I know that I can in Python.
In my example I am getting spurious errors while playing video. Functionality is not impacted. For completeness, it’s errors like the following.
Callback org.freedesktop.gstreamer.elements.AppSink$2@4e1d5565 threw the following exception java.lang.IllegalStateException: Native object has been disposed
This continues for many lines and interferes with the reporting that I do want to read in the console.