From 1a3e9ff399ccf3cc608b65ee2a0fd83ae2bc31cf Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 15 Jan 2026 09:49:22 +0000 Subject: [PATCH] log env Signed-off-by: Vladimir Mandic --- CHANGELOG.md | 1 + launch.py | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e58981e4..a780f3096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ - update `nunchaku==1.1.0` - lora switch logic from force-diffusers to allow-native - split `reference.json` + - print system env on startup - **Fixes** - extension tab: update checker, date handling, formatting etc., thanks @awsr - controlnet with non-english ui locales diff --git a/launch.py b/launch.py index 57a1930af..54944a19c 100755 --- a/launch.py +++ b/launch.py @@ -67,11 +67,10 @@ def get_custom_args(): del env['PS1'] installer.log.trace(f'Environment: {installer.print_dict(env)}') env = [f'{k}={v}' for k, v in os.environ.items() if k.startswith('SD_')] - installer.log.debug(f'Env flags: {env}') - ldpreload = os.environ.get('LD_PRELOAD', None) - ldpath = os.environ.get('LD_LIBRARY_PATH', None) - if ldpreload is not None or ldpath is not None: - installer.log.debug(f'Linker flags: preload="{ldpreload}" path="{ldpath}"') + ld = [f'{k}={v}' for k, v in os.environ.items() if k.startswith('LD_')] + compute = [f'{k}={v}' for k, v in os.environ.items() if 'TORCH' in k or 'CUDA' in k or 'ROCM' in k or 'MIOPEN' in k] + installer.log.debug(f'Flags: sd={env} ld={ld} compute={compute}') + installer.log.debug(f'Flags ') rec('args')