docs: def log_request(_, request, *_args, **_kwargs):
      # type: (Any, ClientRequest, str, str) -> None
      """Log a client request.
  
      :param _: Unused in current version (will be None)
      :param requests.Request request: The request object.
      """
      if not _LOGGER.isEnabledFor(logging.DEBUG):
          return
  
      try:
          _LOGGER.debug("Request URL: %r", request.url)
          _LOGGER.debug("Request method: %r", request.method)
          _LOGGER.debug("Request headers:")
          for header, value in request.headers.items():
              if header.lower() == 'authorization':
                  value = '*****'
              _LOGGER.debug("    %r: %r", header, value)
          _LOGGER.debug("Request body:")
  
          # We don't want to log the binary data of a file upload.
          if isinstance(request.body, types.GeneratorType):
              _LOGGER.debug("File upload")
          else:
              _LOGGER.debug(str(request.body))
      except Exception as err:  # pylint: disable=broad-except
          _LOGGER.debug("Failed to log request: %r", err)