Wait for the log to be saved