shrpx: Log stream id for spdy connection

This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-18 00:16:52 +09:00
parent c7fe718dcf
commit b7335a949f
2 changed files with 5 additions and 2 deletions

View File

@ -363,7 +363,8 @@ int Downstream::push_request_headers()
hdrs += "\r\n"; hdrs += "\r\n";
if(ENABLE_LOG) { 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(); bufferevent *bev = dconn_->get_bev();
evbuffer *output = bufferevent_get_output(bev); evbuffer *output = bufferevent_get_output(bev);

View File

@ -192,7 +192,9 @@ void on_ctrl_recv_callback
for(size_t i = 0; nv[i]; i += 2) { for(size_t i = 0; nv[i]; i += 2) {
ss << nv[i] << ": " << nv[i+1] << "\n"; 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; DownstreamConnection *dconn;