mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
add --loglevel commandline argument for logging
remove the progressbar for extension installation in favor of logging output
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user