From b7335a949fec186d6241cb01703046c24c9be8da Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 18 Jul 2012 00:16:52 +0900 Subject: [PATCH] shrpx: Log stream id for spdy connection --- examples/shrpx_downstream.cc | 3 ++- examples/shrpx_spdy_upstream.cc | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/shrpx_downstream.cc b/examples/shrpx_downstream.cc index 78c41dc..29d31c9 100644 --- a/examples/shrpx_downstream.cc +++ b/examples/shrpx_downstream.cc @@ -363,7 +363,8 @@ int Downstream::push_request_headers() hdrs += "\r\n"; if(ENABLE_LOG) { - LOG(INFO) << "Downstream request headers\n" << hdrs; + LOG(INFO) << "Downstream request headers id=" + << stream_id_ << "\n" << hdrs; } bufferevent *bev = dconn_->get_bev(); evbuffer *output = bufferevent_get_output(bev); diff --git a/examples/shrpx_spdy_upstream.cc b/examples/shrpx_spdy_upstream.cc index cb5c78e..5ab9be8 100644 --- a/examples/shrpx_spdy_upstream.cc +++ b/examples/shrpx_spdy_upstream.cc @@ -192,7 +192,9 @@ void on_ctrl_recv_callback for(size_t i = 0; nv[i]; i += 2) { ss << nv[i] << ": " << nv[i+1] << "\n"; } - LOG(INFO) << "Upstream spdy request headers:\n" << ss.str(); + LOG(INFO) << "Upstream spdy request headers id=" + << downstream->get_stream_id() + << "\n" << ss.str(); } DownstreamConnection *dconn;