Fix `self.error()` calls. Should be `log.error()`.