diff --git a/src/shrpx_accesslog.cc b/src/shrpx_accesslog.cc index 290d0798..25d69fa5 100644 --- a/src/shrpx_accesslog.cc +++ b/src/shrpx_accesslog.cc @@ -63,31 +63,6 @@ void upstream_connect(const std::string& client_ip) } } -void upstream_spdy_stream(const std::string& client_ip, int32_t stream_id) -{ - char datestr[64]; - get_datestr(datestr); - fprintf(stderr, "%s [%s] SYN_STREAM %d\n", client_ip.c_str(), datestr, - stream_id); - fflush(stderr); - if(get_config()->use_syslog) { - syslog(LOG_INFO, "%s SYN_STREAM %d\n", client_ip.c_str(), stream_id); - } -} - -void upstream_spdy_stream_close(const std::string& client_ip, - int32_t stream_id) -{ - char datestr[64]; - get_datestr(datestr); - fprintf(stderr, "%s [%s] STREAM_CLOSE %d\n", - client_ip.c_str(), datestr, stream_id); - fflush(stderr); - if(get_config()->use_syslog) { - syslog(LOG_INFO, "%s STREAM_CLOSE %d\n", client_ip.c_str(), stream_id); - } -} - namespace { const char* status_code_color(int status_code) { diff --git a/src/shrpx_accesslog.h b/src/shrpx_accesslog.h index 921c1223..f3569f42 100644 --- a/src/shrpx_accesslog.h +++ b/src/shrpx_accesslog.h @@ -34,9 +34,6 @@ namespace shrpx { class Downstream; void upstream_connect(const std::string& client_ip); -void upstream_spdy_stream(const std::string& client_ip, int32_t stream_id); -void upstream_spdy_stream_close(const std::string& client_ip, - int32_t stream_id); void upstream_response(const std::string& client_ip, int status_code, Downstream *downstream); diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index 3917e082..b3f5ac88 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -99,10 +99,6 @@ void on_stream_close_callback << " is being closed"; } Downstream *downstream = upstream->find_downstream(stream_id); - if(get_config()->accesslog) { - upstream_spdy_stream_close(upstream->get_client_handler()->get_ipaddr(), - stream_id); - } if(downstream) { if(downstream->get_request_state() == Downstream::CONNECT_FAIL) { upstream->remove_downstream(downstream); @@ -219,10 +215,6 @@ void on_ctrl_recv_callback upstream->rst_stream(downstream, SPDYLAY_INTERNAL_ERROR); return; } - if(get_config()->accesslog) { - upstream_spdy_stream(upstream->get_client_handler()->get_ipaddr(), - frame->syn_stream.stream_id); - } downstream->set_request_state(Downstream::HEADER_COMPLETE); if(frame->syn_stream.hd.flags & SPDYLAY_CTRL_FLAG_FIN) { downstream->set_request_state(Downstream::MSG_COMPLETE);