]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: Correct RTSP traces in http.c, fixes #4753
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 Dec 2017 16:26:43 +0000 (17:26 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 Dec 2017 16:45:01 +0000 (17:45 +0100)
From: Mono Polimorph

src/http.c

index f5e5d5d0c3a1957e9f3761e8c4693fa4ae55831a..c3818b08f7c423ed4b446dd2ea17edf292e33c20 100644 (file)
@@ -1196,7 +1196,7 @@ destroy:
  * Dump request
  */
 static void
-dump_request(http_connection_t *hc)
+dump_request(http_connection_t *hc, int subsys)
 {
   char buf[2048] = "";
   http_arg_t *ra;
@@ -1216,7 +1216,7 @@ dump_request(http_connection_t *hc)
   if (!first)
     tvh_strlcatf(buf, sizeof(buf), ptr, "}}");
 
-  tvhtrace(LS_HTTP, "%s %s %s%s", http_ver2str(hc->hc_version),
+  tvhtrace(subsys, "%s %s %s%s", http_ver2str(hc->hc_version),
            http_cmd2str(hc->hc_cmd), hc->hc_url, buf);
 }
 
@@ -1244,7 +1244,7 @@ http_cmd_get(http_connection_t *hc)
   char *args;
 
   if (tvhtrace_enabled())
-    dump_request(hc);
+    dump_request(hc, LS_HTTP);
 
   if (!http_resolve(hc, &hp, &remain, &args)) {
     http_error(hc, HTTP_STATUS_NOT_FOUND);
@@ -1310,7 +1310,7 @@ http_cmd_post(http_connection_t *hc, htsbuf_queue_t *spill)
   }
 
   if (tvhtrace_enabled())
-    dump_request(hc);
+    dump_request(hc, LS_HTTP);
 
   if (!http_resolve(hc, &hp, &remain, &args)) {
     http_error(hc, HTTP_STATUS_NOT_FOUND);
@@ -1450,7 +1450,7 @@ process_request(http_connection_t *hc, htsbuf_queue_t *spill)
   switch(hc->hc_version) {
   case RTSP_VERSION_1_0:
     if (tvhtrace_enabled())
-      dump_request(hc);
+      dump_request(hc, LS_SATIPS);
     if (hc->hc_cseq)
       rval = hc->hc_process(hc, spill);
     else