diff freeDiameter/p_out.c @ 61:442f9cf1c704

Dump messages being sent
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 30 Nov 2009 15:42:52 +0900
parents cc3c59fe98fe
children 57ffd98dbe96
line wrap: on
line diff
--- a/freeDiameter/p_out.c	Mon Nov 30 15:42:28 2009 +0900
+++ b/freeDiameter/p_out.c	Mon Nov 30 15:42:52 2009 +0900
@@ -57,6 +57,12 @@
 		*hbh = hdr->msg_hbhid + 1;
 	}
 	
+	/* Log the message */
+	if (TRACE_BOOL(FULL)) {
+		TRACE_DEBUG(FULL, "Sending the following message on connection '%s':", fd_cnx_getid(cnx));
+		fd_msg_dump_walk(FULL, *msg);
+	}
+	
 	/* Create the message buffer */
 	CHECK_FCT(fd_msg_bufferize( *msg, &buf, &sz ));
 	
"Welcome to our mercurial repository"