[bug fix] logger was not reporting number of bytes correctly