Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: subprocess.cc

Issue 3119031: AU: clean up logs (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « delta_performer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « delta_performer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698