reset log size on flush