add SD_SCRIPT_DEBUG

This commit is contained in:
Vladimir Mandic
2023-11-02 08:46:32 -04:00
parent b3ef21074a
commit 69a025f4d2
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -312,6 +312,13 @@ def webui(restart=False):
load_model()
shared.opts.save(shared.config_filename)
log.info(f"Startup time: {timer.startup.summary()}")
debug = log.info if os.environ.get('SD_SCRIPT_DEBUG', None) is not None else lambda *args, **kwargs: None
debug('Loaded scripts:')
for m in modules.scripts.scripts_data:
debug(f' {m}')
debug('Loaded postprocessing scripts:')
for m in modules.scripts.postprocessing_scripts_data:
debug(f' {m}')
timer.startup.reset()
if not restart:
+1 -1
Submodule wiki updated: 8df455494e...660b43a13a