def _Error(self, ecode, item, message, *args, **kwargs):
    #TODO: Remove 'code' argument in favour of using log_type
    log_type = kwargs.get('code', self.ETYPE_ERROR)
    if args:
      message = message % args
    self._ErrorMsgList(ecode, item, [message], log_type=log_type)
Log an error message if the passed condition is True.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/cluster/verify.py/_VerifyErrors._Error