make self.error use the logging mechanism