Browse Source

tm: mode details in log message

(cherry picked from commit 9788fe9d2241fb85e6d78578689d6694161bc5a1)
Daniel-Constantin Mierla 5 tháng trước cách đây
mục cha
commit
bc5e32c9ba
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/modules/tm/t_reply.c

+ 3 - 1
src/modules/tm/t_reply.c

@@ -550,7 +550,9 @@ static int _reply_light(struct cell *trans, char *buf, unsigned int len,
 	 * the chances for this increase a lot.
 	 */
 	if(unlikely(!trans->uas.response.dst.send_sock)) {
-		LM_ERR("no resolved dst to send reply to\n");
+		LM_ERR("no resolved dst to send reply to [code: %u, t-flags: %x"
+			   " buf: %.*s ...]\n",
+				code, trans->flags, (len > 128) ? 128 : len, buf);
 	} else {
 		if(likely(SEND_PR_BUFFER(rb, buf, len) >= 0)) {
 			if(unlikely(code >= 200 && !is_local(trans)