def set_log_level(log_level: Optional[int]=None):
    "Set log level of Rasa and Tensorflow either to the provided log level or\n    to the log level specified in the environment variable 'LOG_LEVEL'. If none is set\n    a default log level will be used."
    if (not log_level):
        log_level = os.environ.get(ENV_LOG_LEVEL, DEFAULT_LOG_LEVEL)
        log_level = logging.getLevelName(log_level)
    logging.getLogger('rasa').setLevel(log_level)
    update_tensorflow_log_level()
    update_asyncio_log_level()
    update_apscheduler_log_level()
    update_socketio_log_level()
    os.environ[ENV_LOG_LEVEL] = logging.getLevelName(log_level)
Set log level of Rasa and Tensorflow either to the provided log level or
to the log level specified in the environment variable 'LOG_LEVEL'. If none is set
a default log level will be used.
def set_log_level(log_level: Optional[int]=None):
    "Set log level of Rasa and Tensorflow either to the provided log level or\n    to the log level specified in the environment variable 'LOG_LEVEL'. If none is set\n    a default log level will be used."
    if (not log_level):
        log_level = os.environ.get(ENV_LOG_LEVEL, DEFAULT_LOG_LEVEL)
        log_level = logging.getLevelName(log_level)
    logging.getLogger('rasa').setLevel(log_level)
    update_tensorflow_log_level()
    update_asyncio_log_level()
    update_apscheduler_log_level()
    update_socketio_log_level()
    os.environ[ENV_LOG_LEVEL] = logging.getLevelName(log_level)