def METHOD_NAME(request: Request, exception: Exception) -> None:
    """Logs information about an incoming request and the associated exception.
    Args:
        request (Request): The incoming request to be logged.
        exception (Exception): The exception that occurred during the handling of the request.
    Returns:
        None
    """  # noqa: E501
    quiet = getattr(exception, "quiet", False)
    noisy = getattr(request.app.config, "NOISY_EXCEPTIONS", False)
    if quiet is False or noisy is True:
        try:
            url = repr(request.url)
        except AttributeError:  # no cov
            url = "unknown"
        error_logger.exception(
            "Exception occurred while handling uri: %s", url
        )