diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-09 17:49:33 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-09 17:49:33 +0000 |
commit | edfae9e78af23bdd6161c55c7ec88533de8925f8 (patch) | |
tree | 2659368f56fc6ba8616c53c6c9724140ced98859 /modules/launch_utils.py | |
parent | c7b9394daf9efc5da8e56007199c3fc3e7439f92 (diff) | |
download | stable-diffusion-webui-gfx803-edfae9e78af23bdd6161c55c7ec88533de8925f8.tar.gz stable-diffusion-webui-gfx803-edfae9e78af23bdd6161c55c7ec88533de8925f8.tar.bz2 stable-diffusion-webui-gfx803-edfae9e78af23bdd6161c55c7ec88533de8925f8.zip |
add --loglevel commandline argument for logging
remove the progressbar for extension installation in favor of logging output
Diffstat (limited to 'modules/launch_utils.py')
-rw-r--r-- | modules/launch_utils.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 7143f144..90c00dd2 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -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)
|