Add back removed debug metadata

This is what the old debug function was trying to output (it previously used the manually created bodyLen)