Add content length to logging