fix registry error log: there is no log.critical