code: def debug(self, value):
          
          self._debug = value
  
          if self._debug:
              # Turn on debug logging
              logging.getLogger().setLevel(logging.DEBUG)
docs: Turn on debug logging if necessary.
  
          :param value: Value of debug flag