def print_result(self, *, status: ResultAvro): self.logger.debug("Code={}".format(status.get_code())) if status.message is not None: self.logger.debug("Message={}".format(status.message)) if status.details is not None: self.logger.debug("Details={}".format(status.details))
def update_status(self, *, incoming: ResultAvro, outgoing: ResultAvro): outgoing.set_code(incoming.get_code()) outgoing.set_details(incoming.get_details()) outgoing.set_message(incoming.get_message()) return outgoing