Index: subprocess.cc |
diff --git a/subprocess.cc b/subprocess.cc |
index c319a2217d7e46833e286e104f90279ecc87d7f1..99605ddc1ddf0dc8a120d1b9c00a71941c409c5b 100755 |
--- a/subprocess.cc |
+++ b/subprocess.cc |
@@ -139,10 +139,10 @@ bool Subprocess::SynchronousExec(const std::vector<std::string>& cmd, |
FreeArgv(argv.get()); |
if (err) |
LOG(INFO) << "err is: " << err->code << ", " << err->message; |
- if (child_stdout) |
- LOG(INFO) << "Postinst stdout:" << child_stdout; |
- if (child_stderr) |
- LOG(INFO) << "Postinst stderr:" << child_stderr; |
+ if (child_stdout && strlen(child_stdout)) |
+ LOG(INFO) << "Subprocess stdout:" << child_stdout; |
+ if (child_stderr && strlen(child_stderr)) |
+ LOG(INFO) << "Subprocess stderr:" << child_stderr; |
return success; |
} |