def set_level_for_logger_and_its_handlers(log: logging.Logger,
                                          level: int) -> None:
    """
    Set a log level for a log and all its handlers.

    Args:
        log: log to modify
        level: log level to set
    """
    log.setLevel(level)
    for h in log.handlers:  # type: logging.Handler
        h.setLevel(level)
def set_level_for_logger_and_its_handlers ( log : logging . Logger , level : int ) -> None : log . setLevel ( level ) for h in log . handlers : h . setLevel ( level )
Set a log level for a log and all its handlers.

    Args:
        log: log to modify
        level: log level to set