Avoid interference between log and progress bar output