fix format, add debug log

Change-Id: I12bad506fd13adc6ed3c4a93f76a3926ebd9c0bf