Calling Log.e(TAG, "some message", e) , where e is an UnknownHostException , does not print the stack trace to logcat.
Log.e(TAG, "some message", e)
e
UnknownHostException
Starting May 20, 2011, a change to the Log class occurs, so that UnknownHostException exceptions UnknownHostException not UnknownHostException .
Log
This means that the number of errors in the logs that applications make in the event of an error the network state is not available. https://github.com/android/platform_frameworks_base/commit/dba50c7ed24e05ff349a94b8c4a6d9bb9050973b
Incoming e useless, delete it and it will be visible in logcat .
logcat
Log.e(TAG, "some message");
Source: https://habr.com/ru/post/983418/More articles:Optimization Optimization PNG Gulp - optimizationMock java.io.File with a file system in memory. Maybe JimFs - javaHow to count rows on a worksheet in OpenXML - c #Why porting this bit to 51 - c ++Ways to install Composer installer with WPackagist - phpHow to create a 404 controller using spring boot? - springCordova 4.3.0 - build command returns an error. Cannot find module 'Q' - npmHow to determine method signature when passing a function in Java - JUNIT with Hamcrest error - javaIs there a keyboard shortcut for pause animation in Chrome Developer Tools? (F12) - javascriptExtract text from HTML string using JavaScript - javascriptAll Articles