From 6280606a5781147158a607b409ec7ebf4732bd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 11 Jun 2011 09:46:07 +0200 Subject: Adjust logging in packaging.util.spawn (related to #11599) --- Lib/packaging/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py index 76b8747..29994c0 100644 --- a/Lib/packaging/util.py +++ b/Lib/packaging/util.py @@ -777,12 +777,13 @@ def spawn(cmd, search_path=True, verbose=0, dry_run=False, env=None): Raise PackagingExecError if running the program fails in any way; just return on success. """ - logger.info(' '.join(cmd)) + logger.debug('spawn: running %r', cmd) if dry_run: + logging.debug('dry run, no process actually spawned') return exit_status = subprocess.call(cmd, env=env) if exit_status != 0: - msg = "command '%s' failed with exit status %d" + msg = "command %r failed with exit status %d" raise PackagingExecError(msg % (cmd, exit_status)) -- cgit v0.12