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

Unified Diff: net/test/test_server.cc

Issue 6404003: Silence testserver logs when tests are run in non-verbose mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take 2. Use GetMinLogLevel instead of a separate flag. Created 9 years, 11 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 | « no previous file | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/test_server.cc
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 8f4e8d64d7cb97c0c0b2854e0f7c9e8f28d1907b..fcc7d79a280f0cc9000f32858e4e1b81a4f04f1d 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -348,6 +348,10 @@ bool TestServer::AddCommandLineArguments(CommandLine* command_line) const {
certificates_dir_.AppendASCII("ok_cert.pem"));
command_line->AppendSwitchPath("policy-cert-chain", GetRootCertificatePath());
+ if (logging::GetMinLogLevel() == logging::LOG_VERBOSE) {
+ command_line->AppendArg("--log-to-console");
+ }
+
if (type_ == TYPE_FTP) {
command_line->AppendArg("-f");
} else if (type_ == TYPE_SYNC) {
« no previous file with comments | « no previous file | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698