def warning(self, msg, silent=False):
        """This function prints already downloaded msg"""
        prefix = (
            "\033[2K\033[1G\r\r"
            + Fore.CYAN
            + Style.DIM
            + "["
            + Fore.MAGENTA
            + Style.BRIGHT
            + "*"
            + Fore.CYAN
            + Style.DIM
            + "] : "
        )
        if self._log_filepath:
            log.warning(msg)
        msg = set_color(f"{msg}\n", level=10)
        string = prefix + msg
        if not silent:
            sys.stdout.write(string)
            sys.stdout.flush()
This function prints already downloaded msg
udemy/logger.py