code: def _log(self, message, debug=None, **kwargs):
          
          display_log = self.debug
          if debug is not None:
              display_log = debug
          if display_log:
              print(message.format(**kwargs))
docs: Outputs a formatted message in the console if the
          debug mode is activated.
  
          :param message: The message that will be printed
          :param debug: (optional) Overwrite of `Client.debug`
          :param kwargs: (optional) Arguments that will be passed
              to the `str.format()` method