Permalink
Browse files

Log stdout and stderr in project.utils.run

  • Loading branch information...
1 parent 643fd7e commit bfd9b87463defa6234001bcf9698c00a535a2c5c @saltycrane committed Apr 13, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 readthedocs/projects/utils.py
@@ -61,6 +61,11 @@ def run(*commands):
ret = -1
log.error("Command failed", exc_info=True)
+ if out:
+ log.info('stdout: %s' % out)
+ if err:
+ log.info('stderr: %s' % err)
+
return (ret, out, err)

0 comments on commit bfd9b87

Please sign in to comment.