]> granicus.if.org Git - python/commitdiff
Adjust logging in packaging.util.spawn (related to #11599)
authorÉric Araujo <merwok@netwok.org>
Sat, 11 Jun 2011 07:46:07 +0000 (09:46 +0200)
committerÉric Araujo <merwok@netwok.org>
Sat, 11 Jun 2011 07:46:07 +0000 (09:46 +0200)
Lib/packaging/util.py

index 76b87478998b32d042a90778ef98b378420beb8f..29994c08810441dae1203b1e60524dcd87d19369 100644 (file)
@@ -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))