Browse code

xhttp: more debug messages for sending the response

Daniel-Constantin Mierla authored on 16/03/2017 09:53:51
Showing 1 changed files
... ...
@@ -399,6 +399,7 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason,
399 399
 			return -1;
400 400
 		}
401 401
 		pkg_free(tbuf.s);
402
+		LM_DBG("response with content-type: %.*s\n", ctype->len, ctype->s);
402 403
 	}
403 404
 
404 405
 	if(body!=NULL && body->len>0)
... ...
@@ -408,7 +409,9 @@ static int xhttp_send_reply(sip_msg_t *msg, int code, str *reason,
408 409
 			LM_ERR("Error while adding reply lump\n");
409 410
 			return -1;
410 411
 		}
412
+		LM_DBG("response with body: %.*s\n", body->len, body->s);
411 413
 	}
414
+	LM_DBG("sending out response: %d %.*s\n", code, reason->len, reason->s);
412 415
 	if (slb.freply(msg, code, reason) < 0)
413 416
 	{
414 417
 		LM_ERR("Error while sending reply\n");