Browse Source

core: parser sdp - shorten debug message with sdp line

- was printing the rest of the body, print now max 20 chars
Daniel-Constantin Mierla 4 years ago
parent
commit
4191a81930
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/core/parser/sdp/sdp.c

+ 2 - 1
src/core/parser/sdp/sdp.c

@@ -584,7 +584,8 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_
 				a1p = stream->path.s + stream->path.len;
 			} else {
 				/* unknown a= line, ignore -- jump over it */
-				LM_DBG("ignoring unknown type in a= line: `%.*s'\n", tmpstr1.len, tmpstr1.s);
+				LM_DBG("ignoring unknown type in a= line: `%.*s...'\n",
+						(tmpstr1.len>20)?20:tmpstr1.len, tmpstr1.s);
 				a1p += 2;
 			}