Procházet zdrojové kódy

topoh: print the message buffer if parsing headers failed

Daniel-Constantin Mierla před 10 roky
rodič
revize
551a562eb7
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;
 	}