]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
increase the debug output for RTSP messages and responses at verbosity 2.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 5 Jun 2023 13:22:40 +0000 (14:22 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 5 Jun 2023 13:22:40 +0000 (14:22 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 02c63cce171bc96a2cb600b0924ea602f9423d10..10b48109c70250caa5ea5c378a6bb5438f0a9766 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -5172,7 +5172,7 @@ 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);
@@ -5180,10 +5180,10 @@ static void *rtsp_conversation_thread_func(void *pconn) {
       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\":",