mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 15:16:01 +02:00
add SD_SCRIPT_DEBUG
This commit is contained in:
@@ -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
Reference in New Issue
Block a user