Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: add protocol version and command to dump_request()
  • Loading branch information
perexg committed Apr 2, 2015
1 parent ffe92df commit d63c36a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/http.c
Expand Up @@ -341,7 +341,7 @@ http_error(http_connection_t *hc, int error)
if (error != HTTP_STATUS_FOUND && error != HTTP_STATUS_MOVED)
tvhlog(error < 400 ? LOG_INFO : LOG_ERR, "http", "%s: %s %s %s -- %d",
hc->hc_peer_ipstr, http_ver2str(hc->hc_version),
http_cmd2str(hc->hc_cmd), hc->hc_url, error);
http_cmd2str(hc->hc_cmd), hc->hc_url, error);

if (hc->hc_version != RTSP_VERSION_1_0) {
htsbuf_queue_flush(&hc->hc_reply);
Expand Down Expand Up @@ -546,7 +546,8 @@ dump_request(http_connection_t *hc)
if (!first)
tvh_strlcatf(buf, sizeof(buf), ptr, "}}");

tvhtrace("http", "%s%s", hc->hc_url, buf);
tvhtrace("http", "%s %s %s%s", http_ver2str(hc->hc_version),
http_cmd2str(hc->hc_cmd), hc->hc_url, buf);
}
#else
static inline void
Expand Down

0 comments on commit d63c36a

Please sign in to comment.