Project

General

Profile

Bug #4753 » Correct-RTSP-Traces-v2.diff

Mono Polimorph, 2017-12-11 13:29

View differences:

src/http.c
1196 1196
 * Dump request
1197 1197
 */
1198 1198
static void
1199
dump_request(http_connection_t *hc)
1199
dump_request(http_connection_t *hc, int subsys)
1200 1200
{
1201 1201
  char buf[2048] = "";
1202 1202
  http_arg_t *ra;
......
1216 1216
  if (!first)
1217 1217
    tvh_strlcatf(buf, sizeof(buf), ptr, "}}");
1218 1218

  
1219
  tvhtrace(LS_HTTP, "%s %s %s%s", http_ver2str(hc->hc_version),
1219
  tvhtrace(subsys, "%s %s %s%s", http_ver2str(hc->hc_version),
1220 1220
           http_cmd2str(hc->hc_cmd), hc->hc_url, buf);
1221 1221
}
1222 1222

  
......
1244 1244
  char *args;
1245 1245

  
1246 1246
  if (tvhtrace_enabled())
1247
    dump_request(hc);
1247
    dump_request(hc, LS_HTTP);
1248 1248

  
1249 1249
  if (!http_resolve(hc, &hp, &remain, &args)) {
1250 1250
    http_error(hc, HTTP_STATUS_NOT_FOUND);
......
1310 1310
  }
1311 1311

  
1312 1312
  if (tvhtrace_enabled())
1313
    dump_request(hc);
1313
    dump_request(hc, LS_HTTP);
1314 1314

  
1315 1315
  if (!http_resolve(hc, &hp, &remain, &args)) {
1316 1316
    http_error(hc, HTTP_STATUS_NOT_FOUND);
......
1450 1450
  switch(hc->hc_version) {
1451 1451
  case RTSP_VERSION_1_0:
1452 1452
    if (tvhtrace_enabled())
1453
      dump_request(hc);
1453
      dump_request(hc, LS_SATIPS);
1454 1454
    if (hc->hc_cseq)
1455 1455
      rval = hc->hc_process(hc, spill);
1456 1456
    else
(2-2/2)