def set_pump_status(self, status):
        """
        Updates pump status and logs update to console.
        """
        self.pump_status = status
        _logger.info("%r partition %r", status, self.lease.partition_id)
Updates pump status and logs update to console.