def set_debug(self): """ Sets the capture to debug mode. """ self.log.level = logbook.DEBUG self.debug = True