Do not keep the log if the log window is not visible.