add --loglevel commandline argument for logging

remove the progressbar for extension installation in favor of logging output
This commit is contained in:
AUTOMATIC1111
2023-08-09 20:49:33 +03:00
parent c7b9394daf
commit edfae9e78a
5 changed files with 22 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
# this scripts installs necessary requirements and launches main program in webui.py
import logging
import re
import subprocess
import os
@@ -11,8 +12,10 @@ from functools import lru_cache
from modules import cmd_args, errors
from modules.paths_internal import script_path, extensions_dir
from modules.timer import startup_timer
from modules import logging_config
args, _ = cmd_args.parser.parse_known_args()
logging_config.setup_logging(args.loglevel)
python = sys.executable
git = os.environ.get('GIT', "git")
@@ -248,10 +251,8 @@ def run_extensions_installers(settings_file):
return
with startup_timer.subcategory("run extensions installers"):
import tqdm
progress_bar = tqdm.tqdm(list_extensions(settings_file))
for dirname_extension in progress_bar:
progress_bar.set_description(f"Installing {dirname_extension}")
for dirname_extension in list_extensions(settings_file):
logging.debug(f"Installing {dirname_extension}")
path = os.path.join(extensions_dir, dirname_extension)