Update the total_tv_end only when we show the log to prevent failure to update logs.