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

Side by Side Diff: net/tools/flip_server/flip_in_mem_edsm_server.cc

Issue 8467028: Enable DVLOG on non official release build based on the parameter passed for InitLogging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/stress_cache.cc ('k') | net/tools/testserver/run_testserver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <signal.h> 6 #include <signal.h>
7 #include <sys/file.h> 7 #include <sys/file.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <iostream> 10 #include <iostream>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 atoi(cl.GetSwitchValueASCII("idle-timeout").c_str()); 269 atoi(cl.GetSwitchValueASCII("idle-timeout").c_str());
270 } 270 }
271 271
272 if (cl.HasSwitch("force_spdy")) 272 if (cl.HasSwitch("force_spdy"))
273 net::SMConnection::set_force_spdy(true); 273 net::SMConnection::set_force_spdy(true);
274 274
275 InitLogging(g_proxy_config.log_filename_.c_str(), 275 InitLogging(g_proxy_config.log_filename_.c_str(),
276 g_proxy_config.log_destination_, 276 g_proxy_config.log_destination_,
277 logging::DONT_LOCK_LOG_FILE, 277 logging::DONT_LOCK_LOG_FILE,
278 logging::APPEND_TO_OLD_LOG_FILE, 278 logging::APPEND_TO_OLD_LOG_FILE,
279 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 279 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS,
280 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS);
280 281
281 LOG(INFO) << "Flip SPDY proxy started with configuration:"; 282 LOG(INFO) << "Flip SPDY proxy started with configuration:";
282 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; 283 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_;
283 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; 284 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_;
284 LOG(INFO) << "Forward IP Header : " 285 LOG(INFO) << "Forward IP Header : "
285 << (net::SpdySM::forward_ip_header().length() ? 286 << (net::SpdySM::forward_ip_header().length() ?
286 net::SpdySM::forward_ip_header() : "<disabled>"); 287 net::SpdySM::forward_ip_header() : "<disabled>");
287 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); 288 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false");
288 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; 289 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size;
289 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; 290 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 break; 409 break;
409 } 410 }
410 usleep(1000*10); // 10 ms 411 usleep(1000*10); // 10 ms
411 } 412 }
412 413
413 unlink(PIDFILE); 414 unlink(PIDFILE);
414 close(pidfile_fd); 415 close(pidfile_fd);
415 return 0; 416 return 0;
416 } 417 }
417 418
OLDNEW
« no previous file with comments | « net/disk_cache/stress_cache.cc ('k') | net/tools/testserver/run_testserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698