If we get something of unexpected size, log the sizes. Also, don't log twice. (cherry picked from commit 6c7afdea) (cherry picked from commit c0e60c30)