[Python-checkins] cpython: Adjust logging in packaging.util.spawn (related to #11599)
eric.araujo
python-checkins at python.org
Sat Jun 11 20:01:45 CEST 2011
http://hg.python.org/cpython/rev/3ba34c03f2fc
changeset: 70794:3ba34c03f2fc
user: Éric Araujo <merwok at netwok.org>
date: Sat Jun 11 09:46:07 2011 +0200
summary:
Adjust logging in packaging.util.spawn (related to #11599)
files:
Lib/packaging/util.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py
--- a/Lib/packaging/util.py
+++ b/Lib/packaging/util.py
@@ -777,12 +777,13 @@
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))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list