code: def debug_mode(self, toggle):
          
          if toggle:
              self.log.setLevel(logging.DEBUG)
          else:
              self.log.setLevel(logging.ERROR)
docs: Toggle debug mode for more detailed output
            obj.debug_mode(True) - Turn debug mode on
            obj.debug_mode(False) - Turn debug mode off