summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-06-11 07:46:07 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-06-11 07:46:07 (GMT)
commit6280606a5781147158a607b409ec7ebf4732bd92 (patch)
tree193d33757cc46d46b23a7bfeeace0bcc6ee2bd98
parent7ebadd5d8da049d3ca23737db0312bde6fdaa79f (diff)
downloadcpython-6280606a5781147158a607b409ec7ebf4732bd92.zip
cpython-6280606a5781147158a607b409ec7ebf4732bd92.tar.gz
cpython-6280606a5781147158a607b409ec7ebf4732bd92.tar.bz2
Adjust logging in packaging.util.spawn (related to #11599)
-rw-r--r--Lib/packaging/util.py5
1 files 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))