diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 18:08:52 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 18:08:52 +0000 |
commit | 6de39aaeffa632d072f05d95af5fbf938f8a80d3 (patch) | |
tree | 416cf8b2059aa5d3c8dafc3c522ae973f6476980 /net/spdy | |
parent | fbfb59c226042af7d007d099a7245df7d628057d (diff) | |
download | chromium_src-6de39aaeffa632d072f05d95af5fbf938f8a80d3.zip chromium_src-6de39aaeffa632d072f05d95af5fbf938f8a80d3.tar.gz chromium_src-6de39aaeffa632d072f05d95af5fbf938f8a80d3.tar.bz2 |
Don't write SPDY headers to the log file; they're redundant with
about:net-internals.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3257004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_session.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 7402e5d..04037ac 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -28,29 +28,6 @@ #include "net/spdy/spdy_settings_storage.h" #include "net/spdy/spdy_stream.h" -namespace { - -// Diagnostics function to dump the headers of a request. -// TODO(mbelshe): Remove this function. -void DumpSpdyHeaders(const spdy::SpdyHeaderBlock& headers) { - // Because this function gets called on every request, - // take extra care to optimize it away if logging is turned off. - if (logging::LOG_INFO < logging::GetMinLogLevel()) - return; - - spdy::SpdyHeaderBlock::const_iterator it = headers.begin(); - while (it != headers.end()) { - std::string val = (*it).second; - std::string::size_type pos = 0; - while ((pos = val.find('\0', pos)) != val.npos) - val[pos] = '\n'; - LOG(INFO) << (*it).first << "==" << val; - ++it; - } -} - -} // namespace - namespace net { namespace { @@ -420,9 +397,6 @@ int SpdySession::WriteSynStream( spdy_requests.Increment(); streams_initiated_count_++; - LOG(INFO) << "SPDY SYN_STREAM HEADERS ----------------------------------"; - DumpSpdyHeaders(*headers); - const BoundNetLog& log = stream->net_log(); if (log.HasListener()) { log.AddEvent( @@ -1015,11 +989,6 @@ void SpdySession::OnSyn(const spdy::SpdySynStreamControlFrame& frame, streams_pushed_count_++; - LOG(INFO) << "SpdySession: Syn received for stream: " << stream_id; - - LOG(INFO) << "SPDY SYN RESPONSE HEADERS -----------------------"; - DumpSpdyHeaders(*headers); - // TODO(mbelshe): DCHECK that this is a GET method? const std::string& path = ContainsKey(*headers, "path") ? @@ -1088,9 +1057,6 @@ void SpdySession::OnSynReply(const spdy::SpdySynReplyControlFrame& frame, return; } - LOG(INFO) << "SPDY SYN_REPLY RESPONSE HEADERS for stream: " << stream_id; - DumpSpdyHeaders(*headers); - scoped_refptr<SpdyStream> stream = active_streams_[stream_id]; CHECK_EQ(stream->stream_id(), stream_id); CHECK(!stream->cancelled()); |