diff options
author | Jack Lloyd <[email protected]> | 2017-12-11 18:18:05 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-11 18:18:05 -0500 |
commit | f46c944c92a055f28d3eb8e838d7ea810dd18479 (patch) | |
tree | c1f47c8ea7fa53c40359c25d2eb4f750c9fb04e2 /src/scripts/build_docs.py | |
parent | c40ba649ea54ae5658864e45146fde56d60663ba (diff) |
Improve debug output of the build_docs script
Only log if there was output, and convert the binary string to
Unicode string.
Diffstat (limited to 'src/scripts/build_docs.py')
-rwxr-xr-x | src/scripts/build_docs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/build_docs.py b/src/scripts/build_docs.py index 5d7181dec..94c61afdf 100755 --- a/src/scripts/build_docs.py +++ b/src/scripts/build_docs.py @@ -62,8 +62,11 @@ def run_and_check(cmd_line, cwd=None): (stdout, stderr) = proc.communicate() - logging.debug(stdout) - logging.debug(stderr) + if stdout: + logging.debug(stdout.decode()) + + if stderr: + logging.debug(stderr.decode()) if proc.returncode != 0: logging.error("Error running %s", ' '.join(cmd_line)) |