def set_logger_level(loglevel):
    loglevel = loglevel.upper()
    if loglevel not in ['DEBUG', 'INFO', 'WARNING', 'ERROR']:
        print("Invalid log level. Must be one of: DEBUG, INFO, WARNING, ERROR")
        sys.exit(1)
    default_settings.LOGGING['loggers']['']['level'] = loglevel
    return loglevel
Test if notify errors fails silently with a bad request id.
dataset/ETHPy150Open gtaylor/EVE-Market-Data-Relay/emdr/core/command_utils.py/set_logger_level--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_configurator.py/TestConfigurator.test_notify_errors_fail_silently_on_bad_request_id