adding flush error log.