From 32ae194fc40632efba0cb2c0ee4bfdfcfd9762e1 Mon Sep 17 00:00:00 2001 From: Vit Zikmund Date: Thu, 7 Dec 2023 22:19:18 +0100 Subject: [PATCH] log: bring back output for build command loggers The virtualenv creation resets any existing root logger, so the build command that uses a custom build script loses the ability to log anything below WARNING. Not mentioning the usual IOHandler gets swapped for the default stdout StreamHandler. --- src/poetry/utils/env/env_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/utils/env/env_manager.py b/src/poetry/utils/env/env_manager.py index e7b0cc751d9..ef8bc0ed897 100644 --- a/src/poetry/utils/env/env_manager.py +++ b/src/poetry/utils/env/env_manager.py @@ -668,7 +668,7 @@ def build_venv( args.append(str(path)) - cli_result = virtualenv.cli_run(args) + cli_result = virtualenv.cli_run(args, setup_logging=False) # Exclude the venv folder from from macOS Time Machine backups # TODO: Add backup-ignore markers for other platforms too