Add more logging to function that triggers b2g crash