Add back removed debug metadata

This is what the old debug function was trying to output (it used the manually created bodyLen)
Merge pull request #1020 from FredKSchott/patch-1

Add back removed debug metadata