log to logOptions variable bug fix