update logerror for env