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

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

Change-Id: Iceaef30154b79ce0301c00a7a7f580a8ce326b11