]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Include all RTSP messages in debug level 2 except for the OPTIONS message; tidy up...
authorMike Brady <mikebrady@eircom.net>
Fri, 25 May 2018 12:48:12 +0000 (13:48 +0100)
committerMike Brady <mikebrady@eircom.net>
Fri, 25 May 2018 12:48:12 +0000 (13:48 +0100)
audio_alsa.c
rtsp.c
shairport.c

index 01e350bb560287d450683ebeb4fbeeb797b02bd4..099035199ce2b10403e7e514a6a20c2a00276159 100644 (file)
@@ -279,7 +279,7 @@ static int init(int argc, char **argv) {
 
     /* Get the output rate, which must be a multiple of 44,100*/
     if (config_lookup_int(config.cfg, "alsa.output_rate", &value)) {
-      debug(1, "Value read for output rate is %d.", value);
+      debug(1, "alsa output rate is %d frames per second", value);
       switch (value) {
       case 44100:
       case 88200:
diff --git a/rtsp.c b/rtsp.c
index 4ac036c3ece27663bac16e954e0430148e6b3323..4299167a9ccb4856f5446dc56e74d2c110b1d23c 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -1880,7 +1880,7 @@ static void *rtsp_conversation_thread_func(void *pconn) {
     int debug_level = 3; // for printing the request and response
     reply = rtsp_read_request(conn, &req);
     if (reply == rtsp_read_request_response_ok) {
-      if (strcmp(req->method,"TEARDOWN")==0)
+      if (strcmp(req->method,"OPTIONS")!=0)
         debug_level=2;
       debug(debug_level, "RTSP thread %d received an RTSP Packet of type \"%s\":", conn->connection_number,
             req->method),
index a168d36e8297d187cd67491efb8120fdf66c8e58..69109e8b9e57bfe0f84c9e1ee7f10dea73eed40c 100644 (file)
@@ -1057,7 +1057,7 @@ char pid_file_path_string[4096] = "\0";
 const char *pid_file_proc(void) {
   snprintf(pid_file_path_string, sizeof(pid_file_path_string), "%s/%s.pid", config.computed_piddir,
            daemon_pid_file_ident ? daemon_pid_file_ident : "unknown");
-  debug(1,"pid_file_path_string \"%s\".",pid_file_path_string);
+  // debug(1,"pid_file_path_string \"%s\".",pid_file_path_string);
   return pid_file_path_string;
 }
 
@@ -1383,7 +1383,7 @@ int main(int argc, char **argv) {
   /* Print out options */
   debug(1, "statistics_requester status is %d.", config.statistics_requested);
   debug(1, "daemon status is %d.", config.daemonise);
-  debug(1, "deamon pid file is \"%s\".", pid_file_proc());
+  debug(1, "deamon pid file path is \"%s\".", pid_file_proc());
   debug(1, "rtsp listening port is %d.", config.port);
   debug(1, "udp base port is %d.", config.udp_port_base);
   debug(1, "udp port range is %d.", config.udp_port_range);