Fix bug in auth: undefined log.