summaryrefslogtreecommitdiffstats
path: root/net/spdy
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy')
-rw-r--r--net/spdy/spdy_session.cc34
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());