def report_deprecated_feature(logger, msg, *args, **kwargs):
    stdmsg = _("Deprecated: %s") % msg
    register_options()
    if CONF.fatal_deprecations:
        logger.critical(stdmsg, *args, **kwargs)
        raise DeprecatedConfig(msg=stdmsg)

    # Using a list because a tuple with dict can't be stored in a set.
    sent_args = _deprecated_messages_sent.setdefault(msg, list())

    if args in sent_args:
        # Already logged this message, so don't log it again.
        return

    sent_args.append(args)
    logger.warning(stdmsg, *args, **kwargs)
Integration: request to static resources should not trigger the flash update in debug mode.
dataset/ETHPy150Open openstack/oslo.log/oslo_log/versionutils.py/report_deprecated_feature--crossover with--dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/testproj/app/tests.py/IntegrationTestCase.test_request_to_serve_view_with_default_value