update log.error type