The log could end up with many empty lines because the wrong maximum size was used during the resize.