Browse code

core: parser sdp - shorten debug message with sdp line

- was printing the rest of the body, print now max 20 chars

(cherry picked from commit 4191a8193025499df64f13d59f5716563e573161)
(cherry picked from commit ede5a8399662903c2aa081b7010603398a598e94)

Daniel-Constantin Mierla authored on 03/08/2021 06:51:11
Showing 1 changed files
... ...
@@ -584,7 +584,8 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_
584 584
 				a1p = stream->path.s + stream->path.len;
585 585
 			} else {
586 586
 				/* unknown a= line, ignore -- jump over it */
587
-				LM_DBG("ignoring unknown type in a= line: `%.*s'\n", tmpstr1.len, tmpstr1.s);
587
+				LM_DBG("ignoring unknown type in a= line: `%.*s...'\n",
588
+						(tmpstr1.len>20)?20:tmpstr1.len, tmpstr1.s);
588 589
 				a1p += 2;
589 590
 			}
590 591