Expose some level of logging to aid debugging. am: bc86158b25 am: 66fbe163fe

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818182

Change-Id: I2aa3c10afe1d6b76a7085f04a03c3617dc8669ce