Преглед изворни кода

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;
 	}