Add a few log statements to help debug.

Change-Id: I46ec6a37e0ea81dabfd5b1b3a6f43851365647a7