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

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

Issue 6070006: Made logging not look up --enable-dcheck from command line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed more compile failures 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « courgette/courgette_tool.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <dirent.h> 5 #include <dirent.h>
6 #include <netinet/tcp.h> // For TCP_NODELAY 6 #include <netinet/tcp.h> // For TCP_NODELAY
7 #include <sys/socket.h> 7 #include <sys/socket.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 #include <openssl/err.h> 10 #include <openssl/err.h>
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 g_proxy_config.ssl_session_expiry_ = atoi( session_expiry.c_str() ); 3050 g_proxy_config.ssl_session_expiry_ = atoi( session_expiry.c_str() );
3051 } 3051 }
3052 3052
3053 if (cl.HasSwitch("ssl-disable-compression")) { 3053 if (cl.HasSwitch("ssl-disable-compression")) {
3054 g_proxy_config.ssl_disable_compression_ = true; 3054 g_proxy_config.ssl_disable_compression_ = true;
3055 } 3055 }
3056 3056
3057 InitLogging(g_proxy_config.log_filename_.c_str(), 3057 InitLogging(g_proxy_config.log_filename_.c_str(),
3058 g_proxy_config.log_destination_, 3058 g_proxy_config.log_destination_,
3059 logging::DONT_LOCK_LOG_FILE, 3059 logging::DONT_LOCK_LOG_FILE,
3060 logging::APPEND_TO_OLD_LOG_FILE); 3060 logging::APPEND_TO_OLD_LOG_FILE,
3061 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
3061 3062
3062 LOG(INFO) << "Flip SPDY proxy started with configuration:"; 3063 LOG(INFO) << "Flip SPDY proxy started with configuration:";
3063 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; 3064 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_;
3064 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; 3065 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_;
3065 LOG(INFO) << "Forward IP Header : " 3066 LOG(INFO) << "Forward IP Header : "
3066 << (g_proxy_config.forward_ip_header_enabled_ ? 3067 << (g_proxy_config.forward_ip_header_enabled_ ?
3067 g_proxy_config.forward_ip_header_ : "(disabled)"); 3068 g_proxy_config.forward_ip_header_ : "(disabled)");
3068 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); 3069 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false");
3069 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; 3070 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size;
3070 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; 3071 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
3169 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) { 3170 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) {
3170 sm_worker_threads_[i]->Join(); 3171 sm_worker_threads_[i]->Join();
3171 } 3172 }
3172 return 0; 3173 return 0;
3173 } 3174 }
3174 usleep(1000*10); // 10 ms 3175 usleep(1000*10); // 10 ms
3175 } 3176 }
3176 3177
3177 return 0; 3178 return 0;
3178 } 3179 }
OLDNEW
« no previous file with comments | « courgette/courgette_tool.cc ('k') | net/tools/testserver/run_testserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698