Browse code

dialog: adjusted debug messages when updating attributes

Daniel-Constantin Mierla authored on 25/09/2017 13:13:58
Showing 1 changed files
... ...
@@ -248,14 +248,15 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
248 248
 	if(leg==DLG_CALLER_LEG)
249 249
 		dlg->from_rr_nb = skip_recs;
250 250
 
251
-	LM_DBG("route_set %.*s, contact %.*s, cseq %.*s and bind_addr %.*s\n",
252
-		rr_set.len, rr_set.s, contact.len, contact.s,
251
+	LM_DBG("leg(%d) route_set [%.*s], contact [%.*s], cseq [%.*s]"
252
+			" and bind_addr [%.*s]\n",
253
+		leg, rr_set.len, rr_set.s, contact.len, contact.s,
253 254
 		cseq.len, cseq.s,
254 255
 		msg->rcv.bind_address->sock_str.len,
255 256
 		msg->rcv.bind_address->sock_str.s);
256 257
 
257 258
 	if (dlg_set_leg_info( dlg, tag, &rr_set, &contact, &cseq, leg)!=0) {
258
-		LM_ERR("dlg_set_leg_info failed\n");
259
+		LM_ERR("dlg_set_leg_info failed (leg %d)\n", leg);
259 260
 		if (rr_set.s) pkg_free(rr_set.s);
260 261
 		goto error0;
261 262
 	}