add SD_SCRIPT_DEBUG

pull/2440/head
Vladimir Mandic 2023-11-02 08:46:32 -04:00
parent b3ef21074a
commit 69a025f4d2
2 changed files with 8 additions and 1 deletions

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:

2
wiki

@ -1 +1 @@
Subproject commit 8df455494e46a0d764e9b0b8fc0f6d50775b2f3f
Subproject commit 660b43a13a83a810c5b8ca7f8bb85e043bfd4b9d