Skip to content

Commit

Permalink
increase the debug output for RTSP messages and responses at verbosit…
Browse files Browse the repository at this point in the history
…y 2.
  • Loading branch information
mikebrady committed Jun 5, 2023
1 parent beb195e commit c3d99f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5172,18 +5172,18 @@ static void *rtsp_conversation_thread_func(void *pconn) {
#endif

while (conn->stop == 0) {
int debug_level = 3; // for printing the request and response
int debug_level = 2; // for printing the request and response
reply = rtsp_read_request(conn, &req);
if (reply == rtsp_read_request_response_ok) {
pthread_cleanup_push(msg_cleanup_function, (void *)&req);
resp = msg_init();
pthread_cleanup_push(msg_cleanup_function, (void *)&resp);
resp->respcode = 501; // Not Implemented
int dl = debug_level;
if ((strcmp(req->method, "OPTIONS") == 0) ||
(strcmp(req->method, "POST") ==
0)) // the options message is very common, so don't log it until level 3
dl = 3;
//if ((strcmp(req->method, "OPTIONS") == 0) ||
// (strcmp(req->method, "POST") ==
// 0)) // the options message is very common, so don't log it until level 3
// dl = 3;

if (conn->airplay_stream_category == remote_control_stream) {
debug(dl, "Connection %d (RC): Received an RTSP Packet of type \"%s\":",
Expand Down

0 comments on commit c3d99f9

Please sign in to comment.