소스 검색

topoh: print the message buffer if parsing headers failed

Daniel-Constantin Mierla 10 년 전
부모
커밋
551a562eb7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      modules/topoh/topoh_mod.c

+ 2 - 1
modules/topoh/topoh_mod.c

@@ -229,7 +229,8 @@ int th_prepare_msg(sip_msg_t *msg)
 
 	if (parse_headers(msg, HDR_EOH_F, 0)==-1)
 	{
-		LM_DBG("parsing headers failed");
+		LM_DBG("parsing headers failed [[%.*s]]\n",
+				msg->len, msg->buf);
 		return 2;
 	}