Control the logging state.

def set_debug(self, status):
        """Control the logging state."""
        if status:
            self.logger.setLevel('DEBUG')
        else:
            self.logger.setLevel('INFO')