code: def warn(self, message):
          
          if message not in self._warnings:
              self._warnings.append(message)
  
          self.logger.warn(message)
docs: Log an error messsage.
  
          :param message:  Log message.