a bit of extra debug logging to help diagnose bug 977586

Change-Id: If4bb63f5bf82adea37afe51f3eace20c96327630